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

Build Fails with npm install #128

Open
mrkking opened this issue Feb 14, 2019 · 6 comments
Open

Build Fails with npm install #128

mrkking opened this issue Feb 14, 2019 · 6 comments

Comments

@mrkking
Copy link

mrkking commented Feb 14, 2019

tried it on 4 different computers and got the same error:
Error: [email protected] install: node-gyp rebuild,
error Failed at the [email protected] install script.

@k2ksk2k
Copy link

k2ksk2k commented Mar 4, 2019

  1. Install Python 2.7 (Not python 3).
  2. Install OpenSSL.
  3. Try to upgrade your node.js and npm to newest version. For me v10.15.2 and 6.8.0. There are some issues of older version(Major version >10).
  4. If still not working. Use the command: "npm install x509 --force", And in the folder node_modules/x509/build has the source code. Try to build it and fix the errors.
  5. Still can't install x509, try:"npm install x509 --verbose". Find the error lines, and ask for help with those errors.

@nielshendrickx
Copy link

nielshendrickx commented Mar 5, 2019

tried it on 4 different computers and got the same error:
Error: [email protected] install: node-gyp rebuild,
error Failed at the [email protected] install script.

Having the same problem here
npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] install script.

Also k2ksk2k solution is not working: npm install x509 installs fine without problems. But same error node-gyp rebuild occurs when I try npm install passport-wsfed-saml2

@nielshendrickx
Copy link

Solution: Install older release. npm install [email protected] or npm install [email protected] is working fine for me.

@mrkking
Copy link
Author

mrkking commented Mar 7, 2019

for newer release, I had to clone the 'passport-wsfed-saml2' package and change the x509 dependency to latest - worked!

@trevorhibblen
Copy link

trevorhibblen commented Jun 5, 2019

This was still an issue for me at v3.0.17. Using node v10.16.0, npm v6.9.0. @nielshendrickx's solution worked, but I'm sure @mrkking's would also be good.

@mend3
Copy link

mend3 commented Nov 4, 2020

3.0.12

Using this version worked for me.

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

5 participants