# Error while installing node-red

**URL:** <https://discourse.nodered.org/t/error-while-installing-node-red/3244>\
**Category:** General\
**Created:** [18 September 2018 16:46 UTC](https://discourse.nodered.org/t/error-while-installing-node-red/3244 "2018-09-18T16:46:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![malinthasa](https://avatars.discourse-cdn.com/v4/letter/m/3be4f8/32.png) [@malinthasa](https://discourse.nodered.org/u/malinthasa)\
**Post date:** [18 September 2018 16:46 UTC](https://discourse.nodered.org/t/error-while-installing-node-red/3244/1 "2018-09-18T16:46:29Z")

</div>

Hi,

I uninstalled node-red using`sudo npm uninstall -g node-red` and reinstalled it using `sudo npm install -g --unsafe-perm` node-red. I am getting following error while installing.

```
node-pre-gyp ERR! Completion callback never invoked! 
node-pre-gyp ERR! System Linux 4.15.0-34-generic
node-pre-gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/node-red/node_modules/bcrypt/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /usr/local/lib/node_modules/node-red/node_modules/bcrypt
node-pre-gyp ERR! node -v v8.10.0
node-pre-gyp ERR! node-pre-gyp -v v0.9.1
node-pre-gyp ERR! This is a bug in `node-pre-gyp`.
node-pre-gyp ERR! Try to update node-pre-gyp and file an issue if it does not help:
node-pre-gyp ERR! <https://github.com/mapbox/node-pre-gyp/issues>
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bcrypt@2.0.1 (node_modules/node-red/node_modules/bcrypt):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bcrypt@2.0.1 install: `node-pre-gyp install --fallback-to-build`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 6

```

What is the reason for this issue?

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [18 September 2018 17:16 UTC](https://discourse.nodered.org/t/error-while-installing-node-red/3244/2 "2018-09-18T17:16:50Z")

</div>

Not sure - but it is an optional dependancy so not the end of the world.

Or you could try following the update instructions - [https://github.com/nodejs/node-gyp/wiki/Updating-npm's-bundled-node-gyp](https://github.com/nodejs/node-gyp/wiki/Updating-npm's-bundled-node-gyp)

(shouldn't generally be necessary so what platform / OS are you running on ? )
