Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No longer installs #756

Closed
electic opened this issue Sep 23, 2019 · 10 comments
Closed

No longer installs #756

electic opened this issue Sep 23, 2019 · 10 comments

Comments

@electic
Copy link

electic commented Sep 23, 2019

`> [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: mapbox/node-pre-gyp#477

@loading189
Copy link

Having the same issue. Have not found a fix yet.

@davidcostadev
Copy link

davidcostadev commented Sep 24, 2019

Try to use bcrypt@2 version, it's working to me

@loading189
Copy link

I was able to use bcrypt@2

@fortezhuo
Copy link

I have some issue and can install bcrypt 3.0.6 with add minipass on package.json
Please follow this link : lovell/sharp#1882 (comment)

Env :
OSX 10.14.6
Node 12.10.0
Yarn 1.17.3

@andyyykerr
Copy link

Installing [email protected] first as a temporary workaround allowed my failing npm install to complete

@elssar
Copy link

elssar commented Sep 25, 2019

Can confirm I can install bcrypt now. I think it had something to do with node-pre-gyp - mapbox/node-pre-gyp#477

@elssar
Copy link

elssar commented Sep 26, 2019

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

@elssar
Copy link

elssar commented Sep 26, 2019

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.

Ref: isaacs/minizlib#9

@davidcostadev
Copy link

@electic try to run npm install again.

@himanshusinghs
Copy link

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.

Ref: isaacs/minizlib#9

This actually worked

@recrsn recrsn closed this as completed Feb 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants