node-mysql icon indicating copy to clipboard operation
node-mysql copied to clipboard

error occurred when running npm install

Open bendevelopss opened this issue 6 years ago • 3 comments

[email protected] install /Users/admin/projects/react/bambiniinternational/backend/node-mysql/node_modules/fsevents node install

node-pre-gyp WARN Using request for node-pre-gyp https download [fsevents] Success: "/Users/admin/projects/react/bambiniinternational/backend/node-mysql/node_modules/fsevents/lib/binding/Release/node-v67-darwin-x64/fse.node" is installed via remote

[email protected] install /Users/admin/projects/react/bambiniinternational/backend/node-mysql/node_modules/bcrypt node-pre-gyp install --fallback-to-build

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-v67-darwin-x64.tar.gz node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v67 ABI) (falling back to source compile with node-gyp) node-pre-gyp ERR! Tried to download(undefined): https://github.com/kelektiv/node.bcrypt.js/releases/download/v1.0.3/bcrypt_lib-v1.0.3-node-v67-darwin-x64.tar.gz node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v67 ABI) (falling back to source compile with node-gyp) CXX(target) Release/obj.target/bcrypt_lib/src/blowfish.o CXX(target) Release/obj.target/bcrypt_lib/src/blowfish.o sed: ./Release/.deps/Release/obj.target/bcrypt_lib/src/blowfish.o.d.raw: No such file or directory CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt.o rm: ./Release/.deps/Release/obj.target/bcrypt_lib/src/blowfish.o.d.raw: No such file or directory make: *** [Release/obj.target/bcrypt_lib/src/blowfish.o] Error 1 gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23) gyp ERR! stack at ChildProcess.emit (events.js:197:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:254:12) gyp ERR! System Darwin 18.6.0 gyp ERR! command "/usr/local/Cellar/node/11.10.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/Users/admin/projects/react/bambiniinternational/backend/node-mysql/node_modules/bcrypt/lib/binding/bcrypt_lib.node" "--module_name=bcrypt_lib" "--module_path=/Users/admin/projects/react/bambiniinternational/backend/node-mysql/node_modules/bcrypt/lib/binding" gyp ERR! cwd /Users/admin/projects/react/bambiniinternational/backend/node-mysql/node_modules/bcrypt gyp ERR! node -v v11.10.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/Cellar/node/11.10.0/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/admin/projects/react/bambiniinternational/backend/node-mysql/node_modules/bcrypt/lib/binding/bcrypt_lib.node --module_name=bcrypt_lib --module_path=/Users/admin/projects/react/bambiniinternational/backend/node-mysql/node_modules/bcrypt/lib/binding' (1) node-pre-gyp ERR! stack at ChildProcess. (/Users/admin/projects/react/bambiniinternational/backend/node-mysql/node_modules/node-pre-gyp/lib/util/compile.js:83:29) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:197:13) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:984:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:265:5) node-pre-gyp ERR! System Darwin 18.6.0 node-pre-gyp ERR! command "/usr/local/Cellar/node/11.10.0/bin/node" "/Users/admin/projects/react/bambiniinternational/backend/node-mysql/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" node-pre-gyp ERR! cwd /Users/admin/projects/react/bambiniinternational/backend/node-mysql/node_modules/bcrypt node-pre-gyp ERR! node -v v11.10.0 node-pre-gyp ERR! node-pre-gyp -v v0.6.36 node-pre-gyp ERR! not ok Failed to execute '/usr/local/Cellar/node/11.10.0/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/admin/projects/react/bambiniinternational/backend/node-mysql/node_modules/bcrypt/lib/binding/bcrypt_lib.node --module_name=bcrypt_lib --module_path=/Users/admin/projects/react/bambiniinternational/backend/node-mysql/node_modules/bcrypt/lib/binding' (1) touch: ./Release/.deps/Release/obj.target/bcrypt_lib/src/bcrypt.o.d.raw: No such file or directory make: *** [Release/obj.target/bcrypt_lib/src/bcrypt.o] Error 1 gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23) gyp ERR! stack at ChildProcess.emit (events.js:197:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:254:12) gyp ERR! System Darwin 18.6.0 gyp ERR! command "/usr/local/Cellar/node/11.10.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/Users/admin/projects/react/bambiniinternational/backend/node-mysql/node_modules/bcrypt/lib/binding/bcrypt_lib.node" "--module_name=bcrypt_lib" "--module_path=/Users/admin/projects/react/bambiniinternational/backend/node-mysql/node_modules/bcrypt/lib/binding" gyp ERR! cwd /Users/admin/projects/react/bambiniinternational/backend/node-mysql/node_modules/bcrypt gyp ERR! node -v v11.10.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok npm WARN [email protected] No repository field.

npm ERR! code ELIFECYCLE npm ERR! errno 1 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. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /Users/admin/.npm/_logs/2019-06-12T02_10_34_076Z-debug.log

bendevelopss avatar Jun 12 '19 02:06 bendevelopss

Did you find a solution ?

Edit: I just updated bcrypt library to the latest version ^3.0.6 @jajapabatao package.json -> edit "bcrypt": "^3.0.6", then npm i

razvan-soare avatar Jun 15 '19 19:06 razvan-soare

does not help

miukki avatar Sep 24 '19 07:09 miukki

Delete some dependencies below, and try to install again these dependencies. It worked for me.

"ajv": "^6.12.3",
"artillery": "^1.6.1",
"bcrypt": "^5.0.0",
"express": "^4.17.1",
"jsonwebtoken": "^8.5.1",
"mysql": "^2.18.1",
"node-schedule": "^1.3.0",
"nodemailer": "^6.4.10",
"nodemon": "^2.0.4",
"pm2": "^4.4.0"

omurbilgili avatar Jul 15 '20 10:07 omurbilgili