# Getting error when running a command--\> cd /tmp/bundle/programs/server && npm install

**URL:** <https://forums.rocket.chat/t/getting-error-when-running-a-command-cd-tmp-bundle-programs-server-npm-install/5836>\
**Category:** Community Support\
**Created:** [February 13, 2020, 6:52am UTC](https://forums.rocket.chat/t/getting-error-when-running-a-command-cd-tmp-bundle-programs-server-npm-install/5836 "2020-02-13T06:52:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vikash.singh](https://avatars.discourse-cdn.com/v4/letter/v/ed655f/32.png) [@vikash.singh](https://forums.rocket.chat/u/vikash.singh)\
**Post date:** [February 13, 2020, 6:52am UTC](https://forums.rocket.chat/t/getting-error-when-running-a-command-cd-tmp-bundle-programs-server-npm-install/5836/1 "2020-02-13T06:52:40Z")

</div>

### Description

### Server Setup Information

- Version of Rocket.Chat Server:
- Operating System: CentOS Linux release 7.7.1908 (Core)
- Deployment Method: 
- Number of Running Instances:
- DB Replicaset Oplog:
- NodeJS Version: v12.14.0
- MongoDB Version: db version v4.0.16
- Proxy: 
- Firewalls involved:

### Any additional Information

I’m trying to setting up Rocket chat in CentOS v7.7. I’m following the method as given on rocket.chat/docs/installation/manual-installation/centos/

I’m stuck in a phase of configuration, getting error while running a command **cd /tmp/bundle/programs/server && npm install**

Kindly help me out in resolving the issue. Getting error as below.

[vik@test-vm server]$ sudo cd /tmp/bundle/programs/server && npm install

npm WARN deprecated request@2.88.2: request has been deprecated, see [https://github.com/request/request/issues/3142](https://github.com/request/request/issues/3142)

> fibers@3.1.1 install /tmp/bundle/programs/server/node\_modules/fibers  
> node build.js || nodejs build.js

make: Entering directory `/tmp/bundle/programs/server/node_modules/fibers/build' CXX(target) Release/obj.target/fibers/src/fibers.o ../src/fibers.cc:68:2: error: ‘Handle’ does not name a type Handle<String> NewLatin1String(Isolate* isolate, const char* string) { ^ ../src/fibers.cc:72:2: error: ‘Handle’ does not name a type Handle<String> NewLatin1Symbol(Isolate* isolate, const char* string) { ^ ../src/fibers.cc:94:2: error: ‘Handle’ does not name a type Handle<Object> NewInstance(Isolate* isolate, Local<Function> fn, int argc, Local<Value> argv[]) { ^ ../src/fibers.cc:104:2: error: ‘Handle’ does not name a type Handle<Number> ToNumber(Local<Value> value) { ^ ../src/fibers.cc:114:50: error: ‘Handle’ has not been declared Local<Value> GetStackTrace(TryCatch* try_catch, Handle<Context> context) { ^ ../src/fibers.cc:114:56: error: expected ‘,’ or ‘...’ before ‘<’ token Local<Value> GetStackTrace(TryCatch* try_catch, Handle<Context> context) { ^ ../src/fibers.cc: In function ‘v8::Local<v8::Value> uni::GetStackTrace(uni::TryCatch*, int)’: ../src/fibers.cc:115:32: error: ‘context’ was not declared in this scope return try_catch->StackTrace(context).ToLocalChecked(); ^ ../src/fibers.cc: At global scope: ../src/fibers.cc:127:39: error: ‘Handle’ has not been declared void fixStackLimit(Isolate* isolate, Handle<Context> context) { ^ ../src/fibers.cc:127:45: error: expected ‘,’ or ‘...’ before ‘<’ token void fixStackLimit(Isolate* isolate, Handle<Context> context) { ^ ../src/fibers.cc: In function ‘void uni::fixStackLimit(v8::Isolate*, int)’: ../src/fibers.cc:128:19: error: ‘context’ was not declared in this scope Script::Compile(context, uni::NewLatin1String(isolate, "void 0;")).ToLocalChecked(); ^ ../src/fibers.cc:128:28: error: ‘NewLatin1String’ is not a member of ‘uni’ Script::Compile(context, uni::NewLatin1String(isolate, "void 0;")).ToLocalChecked(); ^ ../src/fibers.cc: At global scope: ../src/fibers.cc:149:58: error: ‘Handle’ has not been declared void Reset(Isolate* isolate, Persistent<T>& persistent, Handle<T> handle) { ^ ../src/fibers.cc:149:64: error: expected ‘,’ or ‘...’ before ‘<’ token void Reset(Isolate* isolate, Persistent<T>& persistent, Handle<T> handle) { ^ ../src/fibers.cc: In function ‘void uni::Reset(v8::Isolate*, v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&, int)’: ../src/fibers.cc:150:29: error: ‘handle’ was not declared in this scope persistent.Reset(isolate, handle); ^ ../src/fibers.cc: At global scope: ../src/fibers.cc:162:26: error: variable or field ‘SetInternalPointer’ declared void void SetInternalPointer(Handle<T> handle, int index, void* val) { ^ ../src/fibers.cc:162:26: error: ‘Handle’ was not declared in this scope ../src/fibers.cc:162:34: error: expected primary-expression before ‘>’ token void SetInternalPointer(Handle<T> handle, int index, void* val) { ^ ../src/fibers.cc:162:36: error: ‘handle’ was not declared in this scope void SetInternalPointer(Handle<T> handle, int index, void* val) { ^ ../src/fibers.cc:162:44: error: expected primary-expression before ‘int’ void SetInternalPointer(Handle<T> handle, int index, void* val) { ^ ../src/fibers.cc:162:55: error: expected primary-expression before ‘void’ void SetInternalPointer(Handle<T> handle, int index, void* val) { ^ ../src/fibers.cc:166:27: error: template declaration of ‘void* uni::GetInternalPointer’ void* GetInternalPointer(Handle<T> handle, int index) { ^ ../src/fibers.cc:166:27: error: ‘Handle’ was not declared in this scope ../src/fibers.cc:166:35: error: expected primary-expression before ‘>’ token void* GetInternalPointer(Handle<T> handle, int index) { ^ ../src/fibers.cc:166:37: error: ‘handle’ was not declared in this scope void* GetInternalPointer(Handle<T> handle, int index) { ^ ../src/fibers.cc:166:45: error: expected primary-expression before ‘int’ void* GetInternalPointer(Handle<T> handle, int index) { ^ ../src/fibers.cc:171:2: error: ‘Handle’ does not name a type Handle<T> Deref(Isolate* isolate, Persistent<T>& handle) { ^ ../src/fibers.cc:176:14: error: variable or field ‘Return’ declared void void Return(Handle<T> handle, const Arguments& args) { ^ ../src/fibers.cc:176:14: error: ‘Handle’ was not declared in this scope ../src/fibers.cc:176:22: error: expected primary-expression before ‘>’ token void Return(Handle<T> handle, const Arguments& args) { ^ ../src/fibers.cc:176:24: error: ‘handle’ was not declared in this scope void Return(Handle<T> handle, const Arguments& args) { ^ ../src/fibers.cc:176:32: error: expected primary-expression before ‘const’ void Return(Handle<T> handle, const Arguments& args) { ^ ../src/fibers.cc:180:14: error: variable or field ‘Return’ declared void void Return(Handle<T> handle, GetterCallbackInfo info) { ^ ../src/fibers.cc:180:14: error: ‘Handle’ was not declared in this scope ../src/fibers.cc:180:22: error: expected primary-expression before ‘>’ token void Return(Handle<T> handle, GetterCallbackInfo info) { ^ ../src/fibers.cc:180:24: error: ‘handle’ was not declared in this scope void Return(Handle<T> handle, GetterCallbackInfo info) { ^ ../src/fibers.cc:180:51: error: expected primary-expression before ‘info’ void Return(Handle<T> handle, GetterCallbackInfo info) { ^ ../src/fibers.cc:188:2: error: ‘Handle’ does not name a type Handle<Value> ThrowException(Isolate* isolate, Handle<Value> exception) { ^ ../src/fibers.cc:192:2: error: ‘Handle’ does not name a type Handle<Context> GetCurrentContext(Isolate* isolate) { ^ ../src/fibers.cc:196:2: error: ‘Handle’ does not name a type Handle<Primitive> Undefined(Isolate* isolate) { ^ ../src/fibers.cc:200:2: error: ‘Handle’ does not name a type Handle<Boolean> NewBoolean(Isolate* isolate, bool value) { ^ ../src/fibers.cc:204:2: error: ‘Handle’ does not name a type Handle<Number> NewNumber(Isolate* isolate, double value) { ^ ../src/fibers.cc:208:2: error: ‘Handle’ does not name a type Handle<FunctionTemplate> NewFunctionTemplate( ^ ../src/fibers.cc:218:2: error: ‘Handle’ does not name a type Handle<Signature> NewSignature( ^ ../src/fibers.cc:408:17: error: expected ‘;’ at end of member declaration static Fiber& Unwrap(Handle<Object> handle) { ^ ../src/fibers.cc:408:30: error: expected ‘)’ before ‘<’ token static Fiber& Unwrap(Handle<Object> handle) { ^ ../src/fibers.cc:414:15: error: expected ‘)’ before ‘<’ token Fiber(Handle<Object> handle, Handle<Function> cb, Handle<Context> v8_context) : ^ ../src/fibers.cc:680:3: error: ‘Handle’ does not name a type Handle<Value> ReturnYielded() { ^ ../src/fibers.cc:842:20: error: ‘Handle’ has not been declared static void Init(Handle<Object> target) { ^ ../src/fibers.cc:842:26: error: expected ‘,’ or ‘...’ before ‘<’ token static void Init(Handle<Object> target) { ^ In file included from ../src/fibers.cc:3:0: ../src/fibers.cc: In static member function ‘static void Fiber::WeakCallback(void*)’: ../src/fibers.cc:458:23: error: ‘class v8::Persistent<v8::Object>’ has no member named ‘IsNearDeath’ assert(that.handle.IsNearDeath()); ^ ../src/fibers.cc: In static member function ‘static void Fiber::DestroyOrphans()’: ../src/fibers.cc:495:17: error: ‘Deref’ is not a member of ‘uni’ auto stack(uni::Deref(that.isolate, fatal_stack)); ^ ../src/fibers.cc: In static member function ‘static uni::FunctionType Fiber::New(const Arguments&)’: ../src/fibers.cc:10:40: error: ‘ThrowException’ is not a member of ‘uni’ #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args) ^ ../src/fibers.cc:882:34: error: ‘NewLatin1Symbol’ is not a member of ‘uni’ uni::SetAccessor(isolate, fn, uni::NewLatin1Symbol(isolate, "fibersCreated"), GetFibersCreated); ^ ../src/fibers.cc:885:16: error: ‘NewLatin1Symbol’ is not a member of ‘uni’ target->Set(uni::NewLatin1Symbol(isolate, "Fiber"), fn); ^ ../src/fibers.cc: At global scope: ../src/fibers.cc:901:11: error: variable or field ‘init’ declared void void init(Handle<Object> target) { ^ ../src/fibers.cc:901:11: error: ‘Handle’ was not declared in this scope ../src/fibers.cc:901:24: error: expected primary-expression before ‘>’ token void init(Handle<Object> target) { ^ ../src/fibers.cc:901:26: error: ‘target’ was not declared in this scope void init(Handle<Object> target) { ^ ../src/fibers.cc: In function ‘v8::Local<v8::Value> uni::GetStackTrace(uni::TryCatch*, int)’: ../src/fibers.cc:116:2: warning: control reaches end of non-void function [-Wreturn-type] } ^ make: *** [Release/obj.target/fibers/src/fibers.o] Error 1 make: Leaving directory `/tmp/bundle/programs/server/node\_modules/fibers/build’  
gyp ERR! build error  
gyp ERR! stack Error: `make` failed with exit code: 2  
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node\_modules/npm/node\_modules/node-gyp/lib/build.js:194:23)  
gyp ERR! stack at ChildProcess.emit (events.js:210:5)  
gyp ERR! stack at Process.ChildProcess.\_handle.onexit (internal/child\_process.js:272:12)  
gyp ERR! System Linux 3.10.0-1062.12.1.el7.x86\_64  
gyp ERR! command “/usr/local/bin/node” “/usr/local/lib/node\_modules/npm/node\_modules/node-gyp/bin/node-gyp.js” “rebuild” “–release”  
gyp ERR! cwd /tmp/bundle/programs/server/node\_modules/fibers  
gyp ERR! node -v v12.14.0  
gyp ERR! node-gyp -v v5.0.5  
gyp ERR! not ok  
node-gyp exited with code: 1  
Please make sure you are using a supported platform and node version. If you  
would like to compile fibers on this machine please make sure you have setup your  
build environment–  
Windows + OS X instructions here: [GitHub - nodejs/node-gyp: Node.js native addon build tool](https://github.com/nodejs/node-gyp)  
Ubuntu users please run: `sudo apt-get install g++ build-essential`  
RHEL users please run: `yum install gcc-c++` and `yum groupinstall 'Development Tools'`  
Alpine users please run: `sudo apk add python make g++`  
sh: nodejs: command not found  
npm ERR! code ELIFECYCLE  
npm ERR! syscall spawn  
npm ERR! file sh  
npm ERR! errno ENOENT  
npm ERR! fibers@3.1.1 install: `node build.js || nodejs build.js`  
npm ERR! spawn ENOENT  
npm ERR!  
npm ERR! Failed at the fibers@3.1.1 install script.  
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:  
npm ERR! /home/vik/.npm/\_logs/2020-02-13T06\_30\_49\_385Z-debug.log

---

<div class="post-metadata">

**Author:** ![Attack44](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/attack44/32/1515_2.png) [@Attack44](https://forums.rocket.chat/u/Attack44)\
**Post date:** [February 17, 2020, 11:32am UTC](https://forums.rocket.chat/t/getting-error-when-running-a-command-cd-tmp-bundle-programs-server-npm-install/5836/2 "2020-02-17T11:32:45Z")

</div>

I currently have the same problem.

- Version of Rocket.Chat Server: 2.4.7
- Operating System: Debian 10
- NodeJS Version: v12.14.0
- MongoDB Version: db version v4.0.16

> **[request/request](https://github.com/request/request)**
>
> 🏊🏾 Simplified HTTP request client. Contribute to request/request development by creating an account on GitHub.

  

> **[request](https://www.npmjs.com/package/request)**
>
> Simplified HTTP request client.

Andreas
