-
Notifications
You must be signed in to change notification settings - Fork 531
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
Failed at the [email protected] install #476
Comments
Hi, same problem on OSX: $ npm i bcrypt --save [email protected] install /Users/antwal/Projects/db_replica/node_modules/bcrypt 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-darwin-x64.tar.gz |
Please install compilers and pre-requisites for your systems. |
hi
which is compilers and pre-requisites? if install 0.8.7 working without problems; I receive the error only with version 1.0.0, 1.0.1 and 1.0.2 Thanks. |
Hi, this is a test: 1.0.x not working : http://pastebin.com/rbp135gX 0.8.7 working : http://pastebin.com/M0kP62nQ node : v6.9.1 gcc : clang : Thanks. |
@antwal : @Agathver is referring to this being a prereq: https://github.com/nodejs/node-gyp (it has system specific prerequisites) However, I have done that and still get the same error, so.... ymmv |
hi
node-gyp is installed with all requisites... but bcrypt 1.0.xnot working |
Had the same problem on OS X. Solved by installing the command line tools in Xcode :) |
hi
which version of OSX and Xcode? with Mavericks 10.9.5, Xcode 6.2 (2333) not working.. [SOLVED] i have build it from source with node-pre-gyp, now working the 1.0.x; but if try build it with node-gyp only i receive a error on build... here test with node-gyp : http://pastebin.com/eB2H2G2z here test with node-pre-gyp : http://pastebin.com/WmmJFhiz here test unit after build with node-pre-gyp : http://pastebin.com/2R34mkRC I believe there is a bug on node-gyp or are not all of the dependencies |
Even with make and python installed I still can't compile this:
This is on DigitalOcean's base tier so it's probably a memory bottleneck. But still, it's ridiculous that it has come to this. |
Hi, same problem on Ubuntu16.04 x64:
Thanks! |
Hi, I solved the problem,
But,
Why? Thanks! |
We do have pre built binaries uploaded for macOS like it is available for 0.8.7. |
For anyone else who can't get past this but needs bcrypt support, I switched to bcryptjs. API is the same, just a bit slower since it doesn't use native bindings. Works good enough for me. |
* start migrating to bcrypt * added method to convert the password to bcrypt when logging in, added method to compare password without knowing the hashing algorhytm, remove default * travis: try to upgrade to container based infrastructure * travis: add deps to build bcrypt.js * travis: add deps to build bcrypt.js * travis: add deps to build bcrypt.js * travis: add deps to build bcrypt.js * use bcryptjs until bcrypt can be installed on travis, see kelektiv/node.bcrypt.js#476 * correct sha1 unit tests * try different mongodb repo * try without mognodb services * try again with bcrypt * disable request logging in travis * migrate missing routes * simplify code * remove bcryptjs * fix typo * fix typo * fix typo in comment * add unit tests for new passwords utility emthods * travis: back to old infrastructure, containers often have timeouts * add integration test for passwordHashMethod * update shrinkwrap * clarify code and add comments * add integration tests * fix linting * fix integration tests
* start migrating to bcrypt * added method to convert the password to bcrypt when logging in, added method to compare password without knowing the hashing algorhytm, remove default * travis: try to upgrade to container based infrastructure * travis: add deps to build bcrypt.js * travis: add deps to build bcrypt.js * travis: add deps to build bcrypt.js * travis: add deps to build bcrypt.js * use bcryptjs until bcrypt can be installed on travis, see kelektiv/node.bcrypt.js#476 * correct sha1 unit tests * try different mongodb repo * try without mognodb services * try again with bcrypt * disable request logging in travis * migrate missing routes * simplify code * remove bcryptjs * fix typo * fix typo * fix typo in comment * add unit tests for new passwords utility emthods * travis: back to old infrastructure, containers often have timeouts * add integration test for passwordHashMethod * update shrinkwrap * clarify code and add comments * add integration tests * fix linting * fix integration tests
Same here on Debian, but it's not surprising because the following url is invalid: |
Same here:
|
The link https://github.com/kelektiv/node.bcrypt.js/releases/download/v1.0.2/bcrypt_lib-v1.0.2-node-v48-linux-x64.tar.gz what he try to download don't exist. |
I have this same issue. The pre-built libraries link is incorrect forcing a fallback build that my system isn't able to do. Current proper link would be, https://github.com/kelektiv/node.bcrypt.js/archive/v1.0.2.tar.gz as is stated in the package.json but apparently not in the npmjs registry? |
Please fix the link. ERROR: |
Hey guys.. had the same problem, the npm link seems to be incorrect. Is there a way I can update it to: https://github.com/kelektiv/node.bcrypt.js/archive/v1.0.2.tar.gz |
I had the same issue on osx where it wasn't building bcrypt.
still get 'Tried to download(404)' as it's not prebuilt but then it builds from source |
Is there any workaround? I have to deploy Parse server to AWS and Azure, but I can't because of this error. |
I too experiencing same issue on Ubuntu 16.04 LTS with Node V6.4
|
What is the solution guys ? Please explain in short. Thanks in advance.. |
@shivarajnaidu the solution is install build tools and latest version of nodejs @devKC on heroku like on aws read the documentation for install build tools @michelgokan I had the same problem on an older version of OSX; El Captian works smoothly; so I think installing everything functions properly even on Sierra |
Thank You For Your Kind Response @antwal .. But I have installed build tools and this error occurring in resent installations of bcrypt only on in older builds and what about 404 error in that output...??? |
@antwal both build tools and the latest version of Node.js are installed but I am still getting this error. The same thing happens on Mac OS, I have the latest Node, npm and Build Tools installed.
|
@newdesignideas You have tried also with node-pre-gyp : here? I have this problem only with old OSX version. |
@antwal in this post you mentioned, "I have build it from source with node-pre-gyp". Can you describe the steps you performed? I am having the same issue as @newdesignideas even after updating node, npm, node-pre-gyp, node-gyp, and the xcode command line tools. Also, who can someone add the tarball file so that we avoid this portion of the error? [EDIT] It turns out that for me there was an issue with the folder version naming for node-gyp. In the .node-gyp folder (under /Users/YOURUSERNAME/.node-gyp) I renamed the 6.x folder to the version of node I'm using, which allowed the installation to succeed. |
OSX Mavericks 10.9.5 - xcode 6.2 - npm 4.0.3 - node 6.9.1 (without brew)
OSX El Capitan 10.11.6 - xcode 8.2.1 - npm 3.10.10 - node 6.10.0 (without brew)
Redhat Enterprise 7 (epel repo)
Windows 10 - here |
On Ubuntu 16.04 I did |
sudo for bcrypt !!!! |
Ubuntu 16.04 on DigitalOcean (512 MB / 1 CPU, 20 GB SSD) The following worked for me:
|
@dotspencer not work for me, Virtual Host/Vagrant/Ubuntu 12.04
|
@anhquande ubuntu 12.04 is very old and does not contain a compliant g++ compiler (nodejs requires a c++11 compiler). You should install gcc-4.9 or higher |
need >gcc-4.9 |
+1 on ubuntu 16 |
Suddenly broken on my centos container when it was working ~ 1 week ago. IMHO there needs to be a working binary distro for it to be suitable for use in production. Appreciate this is not easy to achieve. Installing GCC and make in all my production containers not an option for me, and building a separate deployment process outside of npm would be insane. |
FYI for any future people, upgrading from node v4 to v8 fixed this for me. |
Install this globally to make the node-red-admin command available on your path: npm install -g node-red-admin Note: you may need to run this with sudo, or from within an Administrator command shell. Then use node-red-admin hash-pw tool will prompt you for password: password : abcd1234 $2a$08$ExBqI41sd5ythjkkkklref/6loiiAanRK.we8Zou0H3vMhUXiOfmq |
Had this issue with node 10. Switched to node 9 and had no issue. |
I've got this issue with node 10 too |
@Matthew1534 - just in case, worth checking there is no typo in your install command, I had misspelled bcrypt! |
@oshihirii thanks but it's not that. Here is the console output:
|
Same issue on Ubuntu 16.04.
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-v57-linux-ia32.tar.gz added 70 packages in 17.779s |
@mohammedabualsoud It is not an error. Library installs properly. https://github.com/kelektiv/node.bcrypt.js/wiki/Installation-Instructions |
What went wrong: Failed at the [email protected] install script 'node-gyp rebuild'.
What did you expect to happen: npm install bcrypt --g
Which version of nodejs: [email protected] and OS: Windows 8
I get the follwoing error while installing 'bcrypt'
$ npm install bcrypt --g
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-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v48 ABI) (falling back to source compile with node-gyp)
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe". To fix this, 1) install the .NET Framework 2.0 SDK, 2) install Microsoft Visual Studio 2005 or 3) add the location of the component to the system path if it is installed elsewhere. [C:\Users\MY\AppData\Roaming\npm\node_modules\bcrypt\build\binding.sln]
gyp ERR! build error
gyp ERR! stack Error:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
failed with exit code: 1gyp ERR! stack at ChildProcess.onExit (C:\Users\MY\AppData\Roaming\npm\node_modules\node-gyp\lib\build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\MY\AppData\Roaming\npm\node_modules\node-gyp\bin\node-gyp.js" "build" "--fallback-to-build" "--module=C:\Users\MY\AppData\Roaming\npm\node_modules\bcrypt\lib\binding\bcrypt_lib.node" "--module_name=bcrypt_lib" "--module_path=C:\Users\MY\AppData\Roaming\npm\node_modules\bcrypt\lib\binding"
gyp ERR! cwd C:\Users\MY\AppData\Roaming\npm\node_modules\bcrypt
gyp ERR! node -v v6.9.4
gyp ERR! node-gyp -v v3.5.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\MY\AppData\Roaming\npm\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=C:\Users\MY\AppData\Roaming\npm\node_modules\bcrypt\lib\binding\bcrypt_lib.node --module_name=bcrypt_lib --module_path=C:\Users\MY\AppData\Roaming\npm\node_modules\bcrypt\lib\binding' (1)
node-pre-gyp ERR! stack at ChildProcess. (C:\Users\MY\AppData\Roaming\npm\node_modules\bcrypt\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:106:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:191:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:877:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
node-pre-gyp ERR! System Windows_NT 6.3.9600
node-pre-gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\MY\AppData\Roaming\npm\node_modules\bcrypt\node_modules\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd C:\Users\MY\AppData\Roaming\npm\node_modules\bcrypt
node-pre-gyp ERR! node -v v6.9.4
node-pre-gyp ERR! node-pre-gyp -v v0.6.32
node-pre-gyp ERR! not ok
Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\MY\AppData\Roaming\npm\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=C:\Users\MY\AppData\Roaming\npm\node_modules\bcrypt\lib\binding\bcrypt_lib.node --module_name=bcrypt_lib --module_path=C:\Users\MY\AppData\Roaming\npm\node_modules\bcrypt\lib\binding' (1)
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "bcrypt" "--g"
npm ERR! node v6.9.4
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 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the bcrypt package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs bcrypt
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls bcrypt
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\greenapp\next\rest\npm-debug.log
The text was updated successfully, but these errors were encountered: