Problem on update from 2.2 to 3.0v

Having a problem on updating rocketchat from 2.2 to version 3.0

problem occur when i type this part “cd /tmp/bundle/programs/server && npm install”

this is the output:

npm WARN deprecated request@2.88.2: request has been deprecated, see

fibers@4.0.3 install /tmp/bundle/programs/server/node_modules/fibers
node build.js || nodejs build.js

gyp WARN EACCES current user (“root”) does not have permission to access the dev dir “/root/.cache/node-gyp/8.17.0”
gyp WARN EACCES attempting to reinstall using temporary dev dir “/tmp/bundle/programs/server/node_modules/fibers/.node-gyp”
gyp WARN install got an error, rolling back install
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir ‘/tmp/bundle/programs/server/node_modules/fibers/.node-gyp’
gyp ERR! System Linux 3.10.0-1062.9.1.el7.x86_64
gyp ERR! command “/usr/bin/node” “/usr/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 v8.17.0
gyp ERR! node-gyp -v v5.1.0
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:
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! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! fibers@4.0.3 install: node build.js || nodejs build.js
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the fibers@4.0.3 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! /root/.npm/_logs/2020-05-02T14_10_26_710Z-debug.log

Server Setup Information

  • Version of Rocket.Chat Server: 2.2.1
  • Operating System: CentOS
  • Deployment Method: tar
  • Number of Running Instances:
  • DB Replicaset Oplog:
  • NodeJS Version: v8.17.0
  • MongoDB Version: v4.0.18
  • Proxy: nginx
  • Firewalls involved: