-
Notifications
You must be signed in to change notification settings - Fork 534
Bcrypt not installing | Throwing 404 for the referred resource in npm #500
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
Comments
you have read the issue #476 ? |
@akigupta131 Did you find a solution for this? I have exactly the same error. And it only happens to me in Docker. |
|
@karimcitoh you need to add |
@akigupta131 |
I have all the necessary dependancies. Funny thing, cloning repository, checking
But
|
This worked for me!
|
@karimcitoh gyp refuses to run as root. I tried installing as root and got the same error. Try adding a user and using a USER instruction and switching to it before performing a npm install. See |
node-pre-gyp ERR! Tried to download(404): https://github.com/kelektiv/node.bcrypt.js/releases/download/v1.0.2/bcrypt_lib-v1.0.2-node-v51-linux-x64.tar.gz Build version 1.0.2 don't contain linux platform |
@cakiem8x We are aware of the issue. See this page for installing compile time dependencies to install @defunctzombie Please upload linux binaries when you get time, as a temporary measure. See #483 on how to fetch them. |
This missing release is the reason our deploys had to build bcrypt during installation, which in turn failed because of the downtime in nodejs.org (installation requires downloading some headers). |
@brocoli The download of headers is a one time affair. |
I have a user who reported this error on a regular Debian system; also on Node 6. Older See pump-io/pump.io#1333 for logs. |
I can confirm that this user has the entire |
@strugee This is not an error with the library, but rather node-gyp See nodejs/node-gyp#454
This happens if your script is executing at root. npm refuses to run as root and performs actions as the
|
Ah, gotcha. :/ that's unfortunate. Thanks and sorry for the noise; this really seemed like a bcrypt issue since it used to work. |
Just a note for anyone that reads the above. While bcryptjs has the same API surface on the JS side; it does not actually implement background work in the same way as the c++ bindings. The c++ bindings use a background thread pool while bcryptjs will block your main thread pool. This may have implications on your services so make sure you understand what you are doing and how it will impact your services before blindly switching dependencies. |
Is there a way to change the directory in which npm is trying to download from? This link https://github.com/kelektiv/node.bcrypt.js/releases/download/v2.0.1/bcrypt_lib-v2.0.1-node-v46-linux-x64-glibc.tar.gz works (it has v46 instead of v64...) where with the default link I get a 404 error. |
No that is working as intended.
v64 is node 10, that only works when doing a source compile ATM. There were
some problems building the binary on Travis after the upgrade.
For now, install python2, g++, make and npm install bcrypt. See the
installation instructions for a proper documentation.
…On Wed, May 2, 2018 at 1:55 PM Roee Shapira ***@***.***> wrote:
Is there a way to change the directory in which npm is trying to download
from? This link
https://github.com/kelektiv/node.bcrypt.js/releases/download/v2.0.1/bcrypt_lib-v2.0.1-node-v46-linux-x64-glibc.tar.gz
works (it has *v46* instead of *v64*...) where with the default link I
get a 404 error.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#500 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AQCaTwvY-a0H0v8qqaFUmecdLav_iOq3ks5tuW1rgaJpZM4MiKpA>
.
|
I'm on arch linux, so I installed python2, g++, make and npm install bcrypt, but it still didn't work (still got the same 404 error, so I'm not sure how that fixes the problem...), so I downgraded node.js to its LTS version and now it's working. |
I am on CentOS Linux System v7.2, running Node v7.6.0 and NPM v4.4.4.
I am trying to install Bcrypt using
sudo npm install brcypt
but on the stepnode-pre-gyp install --fallback-to-build
is called, it throws:node-pre-gyp ERR! Tried to download(404): https://github.com/kelektiv/node.bcrypt.js/releases/download/v1.0.2/bcrypt_lib-v1.0.2-node-v48-linux-x64.tar.gz
Not even opening in browser, hence this release-resource is certainly not available. But it is defined in some of the code. Some help really appreciated.
(Please find attached the screenshot)
The text was updated successfully, but these errors were encountered: