# Error NPM Install

**URL:** https://forums.rocket.chat/t/error-npm-install/18599
**Category:** Upgrade Help
**Created:** [November 22, 2023, 5:48am UTC](https://forums.rocket.chat/t/error-npm-install/18599 "2023-11-22T05:48:33Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![kvntmthy](https://avatars.discourse-cdn.com/v4/letter/k/ba9def/32.png) [@kvntmthy](https://forums.rocket.chat/u/kvntmthy)
#### Post date: [November 22, 2023, 5:48am UTC](https://forums.rocket.chat/t/error-npm-install/18599/1 "2023-11-22T05:48:33Z")

</div>

## What version are you coming from? 6.2.11

## What version are you going to? 6.4.5

## What deployment method did you use to deploy? Manual

## Did you follow a particular doc? Which one? Yes install rocketchat on centos 7

## What issues are you running into upgrading? I got error when i try to run npm install after download .tar.gz file like what i attache below

IMPORTANT: Failed to load the native module for matrix-sdk-crypto-nodejs. Matrix functionality depending on this will not work  
gyp ERR! stack Error: EACCES: permission denied, unlink ‘build/Makefile’  
gyp ERR! System Linux 3.10.0-1160.102.1.el7.x86\_64  
gyp ERR! command “/home/centos/.nvm/versions/node/v14.21.3/bin/node” “/home/centos/.nvm/versions/node/v14.21.3/lib/node\_modules/npm/node\_modules/node-gyp/bin/node-gyp.js” “clean”  
gyp ERR! cwd /tmp/bundle/programs/server/npm/node\_modules/gc-stats  
gyp ERR! node -v v14.21.3  
gyp ERR! node-gyp -v v5.1.1  
gyp ERR! not ok  
node-pre-gyp ERR! build error  
node-pre-gyp ERR! stack Error: Failed to execute ‘/home/centos/.nvm/versions/node/v14.21.3/bin/node /home/centos/.nvm/versions/node/v14.21.3/lib/node\_modules/npm/node\_modules/node-gyp/bin/node-gyp.js clean’ (1)  
node-pre-gyp ERR! stack at ChildProcess. (/tmp/bundle/programs/server/npm/node\_modules/@mapbox/node-pre-gyp/lib/util/compile.js:89:23)  
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:400:28)  
node-pre-gyp ERR! stack at maybeClose (internal/child\_process.js:1088:16)  
node-pre-gyp ERR! stack at Process.ChildProcess.\_handle.onexit (internal/child\_process.js:296:5)  
node-pre-gyp ERR! System Linux 3.10.0-1160.102.1.el7.x86\_64  
node-pre-gyp ERR! command “/home/centos/.nvm/versions/node/v14.21.3/bin/node” “/tmp/bundle/programs/server/npm/node\_modules/.bin/node-pre-gyp” “install” “–fallback-to-build”  
node-pre-gyp ERR! cwd /tmp/bundle/programs/server/npm/node\_modules/gc-stats  
node-pre-gyp ERR! node -v v14.21.3  
node-pre-gyp ERR! node-pre-gyp -v v1.0.9  
node-pre-gyp ERR! not ok  
Failed to execute ‘/home/centos/.nvm/versions/node/v14.21.3/bin/node /home/centos/.nvm/versions/node/v14.21.3/lib/node\_modules/npm/node\_modules/node-gyp/bin/node-gyp.js clean’ (1)  
npm ERR! code ELIFECYCLE  
npm ERR! errno 1  
npm ERR! gc-stats@1.4.0 install: `node-pre-gyp install --fallback-to-build`  
npm ERR! Exit status 1  
npm ERR!  
npm ERR! Failed at the gc-stats@1.4.0 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/centos/.npm/\_logs/2023-11-22T05\_45\_40\_469Z-debug.log  
npm ERR! code ELIFECYCLE  
npm ERR! errno 1  
npm ERR! meteor-dev-bundle@ install: `node npm-rebuild.js`  
npm ERR! Exit status 1  
npm ERR!  
npm ERR! Failed at the meteor-dev-bundle@ 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/centos/.npm/\_logs/2023-11-22T05\_45\_40\_543Z-debug.log
