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
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
nobodyif you use sudo.It didnt work on Windows 10.
FYI: I have 64-bit.
Itās worked for me~~!!! Thanks a lot!