`> [email protected] install /home/electic/backend/node_modules/bcrypt
node-pre-gyp install --fallback-to-build
node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp ERR! Completion callback never invoked!
node-pre-gyp ERR! System Linux 4.9.0-11-amd64
node-pre-gyp ERR! command "/usr/bin/node" "/home/electic/backend/node_modules/bcrypt/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /home/electic/backend/node_modules/bcrypt
node-pre-gyp ERR! node -v v11.15.0
node-pre-gyp ERR! node-pre-gyp -v v0.12.0
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 [email protected] requires a peer of [email protected] - 7.x.x but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] No repository field.
npm ERR! code ELIFECYCLE
npm ERR! errno 6
npm ERR! [email protected] install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 6
npm ERR!
npm ERR! Failed at the [email protected] 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/electic/.npm/_logs/2019-09-23T23_45_30_878Z-debug.log`
It might be related to this: https://github.com/mapbox/node-pre-gyp/issues/477
Having the same issue. Have not found a fix yet.
Try to use bcrypt@2 version, it's working to me
I was able to use bcrypt@2
I have some issue and can install bcrypt 3.0.6 with add minipass on package.json
Please follow this link : https://github.com/lovell/sharp/issues/1882#issuecomment-534266128
Env :
OSX 10.14.6
Node 12.10.0
Yarn 1.17.3
Installing [email protected] first as a temporary workaround allowed my failing npm install to complete
Can confirm I can install bcrypt now. I think it had something to do with node-pre-gyp - https://github.com/mapbox/node-pre-gyp/issues/477
Aand looks like another dependency has broke node-pre-gyp. This time it is minizlib. Getting the following error
> [email protected] install /tmp/bcrypt-test/node_modules/bcrypt
> node-pre-gyp install --fallback-to-build
node-pre-gyp WARN Using needle for node-pre-gyp https download
node-pre-gyp ERR! UNCAUGHT EXCEPTION
node-pre-gyp ERR! stack TypeError: Cannot match against 'undefined' or 'null'.
node-pre-gyp ERR! stack at Object.<anonymous> (/tmp/bcrypt-test/node_modules/minizlib/constants.js:2:40)
node-pre-gyp ERR! stack at Module._compile (module.js:577:32)
node-pre-gyp ERR! stack at Object.Module._extensions..js (module.js:586:10)
node-pre-gyp ERR! stack at Module.load (module.js:494:32)
node-pre-gyp ERR! stack at tryModuleLoad (module.js:453:12)
node-pre-gyp ERR! stack at Function.Module._load (module.js:445:3)
node-pre-gyp ERR! stack at Module.require (module.js:504:17)
node-pre-gyp ERR! stack at require (internal/module.js:20:19)
node-pre-gyp ERR! stack at Object.<anonymous> (/tmp/bcrypt-test/node_modules/minizlib/index.js:7:39)
node-pre-gyp ERR! stack at Module._compile (module.js:577:32)
node-pre-gyp ERR! System Linux 4.4.0-164-generic
node-pre-gyp ERR! command "/usr/local/bin/node" "/tmp/bcrypt-test/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /tmp/bcrypt-test/node_modules/bcrypt
node-pre-gyp ERR! node -v v6.17.1
node-pre-gyp ERR! node-pre-gyp -v v0.12.0
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 [email protected] No description
npm WARN [email protected] No repository field.
npm ERR! Linux 4.4.0-164-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "bcrypt"
npm ERR! node v6.17.1
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 7
This is only happening on node <=6, due to a change introduced in minizlib v1.3.0. My workaround was to add minizlib v1.2.2 to my dependencies.
@electic try to run npm install again.
This is only happening on node <=6, due to a change introduced in minizlib v1.3.0. My workaround was to add
minizlib v1.2.2to my dependencies.Ref: isaacs/minizlib#9
This actually worked
Most helpful comment
Having the same issue. Have not found a fix yet.