node.bcrypt.js: node-pre-gyp ERR! Tried to download(404): https://github.com/kelektiv/node.bcrypt.js/releases/download/v1.0.3/bcrypt_lib-v1.0.3-node-v59-linux-x64.tar.gz

Hi. Same as #571 on linux 😦

node-pre-gyp ERR! Tried to download(404): https://github.com/kelektiv/node.bcrypt.js/releases/download/v1.0.3/bcrypt_lib-v1.0.3-node-v59-linux-x64.tar.gz node-pre-gyp ERR! Pre-built binaries not found for bcrypt@1.0.3 and node@9.2.1 (node-v59 ABI) (falling back to source compile with node-gyp) gyp ERR! configure error gyp ERR! stack Error: EACCES: permission denied, mkdir ā€˜/var/git/eligibility_master/node_modules/bcrypt/build’ gyp ERR! System Linux 4.13.0-26-generic gyp ERR! command ā€œ/usr/local/bin/nodeā€ ā€œ/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.jsā€ ā€œconfigureā€ ā€œā€“fallback-to-buildā€ ā€œā€“module=/var/git/eligibility_master/node_modules/bcrypt/lib/binding/bcrypt_lib.nodeā€ ā€œā€“module_name=bcrypt_libā€ ā€œā€“module_path=/var/git/eligibility_master/node_modules/bcrypt/lib/bindingā€ gyp ERR! cwd /var/git/eligibility_master/node_modules/bcrypt gyp ERR! node -v v9.2.1 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute ā€˜/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/var/git/eligibility_master/node_modules/bcrypt/lib/binding/bcrypt_lib.node --module_name=bcrypt_lib --module_path=/var/git/eligibility_master/node_modules/bcrypt/lib/binding’ (1) node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/var/git/eligibility_master/node_modules/node-pre-gyp/lib/util/compile.js:83:29) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:159:13) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:943:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5) node-pre-gyp ERR! System Linux 4.13.0-26-generic node-pre-gyp ERR! command ā€œ/usr/local/bin/nodeā€ ā€œ/var/git/eligibility_master/node_modules/.bin/node-pre-gypā€ ā€œinstallā€ ā€œā€“fallback-to-buildā€ node-pre-gyp ERR! cwd /var/git/eligibility_master/node_modules/bcrypt node-pre-gyp ERR! node -v v9.2.1 node-pre-gyp ERR! node-pre-gyp -v v0.6.36 node-pre-gyp ERR! not ok Failed to execute ā€˜/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/var/git/eligibility_master/node_modules/bcrypt/lib/binding/bcrypt_lib.node --module_name=bcrypt_lib --module_path=/var/git/eligibility_master/node_modules/bcrypt/lib/binding’ (1) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! bcrypt@1.0.3 install: node-pre-gyp install --fallback-to-build npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the bcrypt@1.0.3 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 16

Most upvoted comments

downgrade node allow a workaround for me…

sudo npm cache clean -f sudo npm install -g n sudo n 8.4.0

@jerrychong25 use chown to fix ownership and do not use sudo. It will fail. Npm runs as user nobody if you use sudo.

downgrade node allow a workaround for me… sudo npm cache clean -f sudo npm install -g n sudo n 8.4.0

It’s worked for me~~!!! Thanks a lot!

Worked for me also!!! thanks a lot 😃

It didnt work on Windows 10.

npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for n@3.0.2: wanted {"os":"!win32","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! notsup Valid OS:    !win32
npm ERR! notsup Valid Arch:  any
npm ERR! notsup Actual OS:   win32
npm ERR! notsup Actual Arch: x64

FYI: I have 64-bit. image

downgrade node allow a workaround for me…

sudo npm cache clean -f sudo npm install -g n sudo n 8.4.0

It’s worked for me~~!!! Thanks a lot!