-
Notifications
You must be signed in to change notification settings - Fork 508
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
Bcrypt fails to install via npm #509
Comments
The output for me:
|
We had a similar problem on our project after upgrading to npm v5. Explicitly installing bcrypt (ie |
This as is really a npm v5 bug with node-pre-gyp npm/npm#16728 |
This issue has disappeared in recent versions of npm, though I cannot confirm. |
It has certainly disappeared for us, somewhere at approximately npm v5.3. |
There were some bug-fixes in npm regarding this, though the linked issue remains open. |
Run into same issue while npm install after pulling master branch, as well as on npm install bcrypt
|
Found a workaround though; run |
The problem still occurs - when I tried to deploy my app to Digital Ocean I received exactly the same error log (npm 5.5.1) |
@Rachomir, Do you have build-essentials and python ? Still some more info, and the np,-debug.log will help |
What I am receiving is
I red in another source in the internet that bcryptjs will work fine and it does however afterwards I had a problem with chromedriver script... any idea how to fix it? |
@Rachomir Please attach the contents of "/root/.npm/_logs/2017-11-06T15_08_43_798Z-debug.log" |
Don't know if it's a right place to report, but I can also confirm similar problem. I use a fresh DO instance with Ubuntu 16.04.3 and latest Node (9.3.0) and NPM (5.5.1) versions. This problem occurs when I do the "npm install" for a Meteor project build. |
@themao what version of Meteor are you using? |
@Rachomir it's 1.5.1 |
What about docker image? |
@Rachomir I don't use docker in my current setup, but maybe I should try |
Using Docker from node:8 I get more weird error:
|
It's odd, but installing bcrypt globally and removing it from package.json didn't help - it still tries to install bcrypt and fails Wait, the error message actually changed. Now it's about the fibers package. So I assume it has nothing to do with some package, just a general npm/node problem. |
So, I "solved" it by downgrading to npm 3.10.3 and node 6.4.0 |
Having exactly the same error using Meteor Up and DO. Node 8.x and NPM 5.5 |
I have the same issue. Tried with multiple versions of node and npm (4.7, 6.4, 9.4). Every time I got the same problem |
@nicolas-mosch EPERM? |
Seeing the same issue. |
Finally after many research I solve this problem. So, guys those who are facing this problem just do the below processes, I just installed python and set the environment variables now it's working perfect for me. Install Python (while installing in windows you can get the option for add path in environment variables, just tick the check box or else) |
Hi guys... I had the same problem... I hope it helps someone because I lost hours with this, but instead of using bcrypt I've used bcryptjs (found here) So instead of using: I read that is a little bit less performant. At least for my application it works great without further problems. I hope it helps. |
Try add This worked for me! |
Trying to get a year old program to install, "npm upgrade" failed, had to manually change ""bcrypt": "^1.0.3", to ""bcrypt": "^3.0.2", was getting 404 errors when 1.0.3 was part of the download url |
For me, it was to make |
Manually changing "bcrypt":"^1.0.3" to "bcrypt":"^3.0.2" in the package.json worked fine for me. |
It worked ! Thanks a lot |
I had the same problem. changing the bcrypt version to latest(3.0.6) worked for me. |
Following steps saved my day:
|
Thank you! This worked! |
FWIW, fixed it by running npm rebuild
npm install YMMV, as we all know Edit: Alternative that seemed to have worked as well (source) npm rebuild bcrypt --update-binary Although I don't really see this parameter in the documentation... |
This worked for me! Thanks |
This worked for me! Thanks |
Having this issue with bcrypt in pipedream... bcryptjs works fine |
I also have this error when installing bcrypt npm ERR! Code 1 |
I run a package called mStream that uses bcrypt. Several users have reported that when installing mStream via npm they get the following bcrypt error:
The workaround is pretty easy luckily. If you clone the repository via github and run
npm install
bcrypt will install just fine. Any idea what's causing this bug?The text was updated successfully, but these errors were encountered: