I am trying to build a big project using yarn and I get a lot of errors in the form of node-pre-gyp ERR! and gyp ERR!
The errors are bellow:
22 warnings and 11 errors generated.
make: *** [Release/obj.target/fse/fsevents.o] Error 1
22 warnings and 11 errors generated.
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit(/usr/local/Cellar/node/12.3.1/libexec/lib/node_modules/npm/node_modules/no de-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:200:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Darwin 18.6.0
gyp ERR! command \"/usr/local/Cellar/node/12.3.1/bin/node\" \"/usr/local/Cellar/node/12.3.1/libexec/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"build\" \"--fallback-to-build\" \"--module=/Users/x/Desktop/p-w/p-r/node_modules/fsevents/lib/binding/Release/node-v72-darwin-x64/fse.node\" \"--module_name=fse\" \"--module_path=/Users/x/Desktop/p-w/p-r/node_modules/fsevents/lib/binding/Release/node-v72-darwin-x64\" \"--napi_version=4\" \"--node_abi_napi=napi\"
gyp ERR! cwd /Users/x/Desktop/p-w/p-r/node_modules/fsevents
gyp ERR! node -v v12.3.1
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 'node-gyp build --fallback-to-build --module=/Users/x/Desktop/p-w/p-r/node_modules/fsevents/lib/binding/Release/node-v72-darwin-x64/fse.node --module_name=fse --module_path=/Users/x/Desktop/p-w/p-r/node_modules/fsevents/lib/binding/Release/node-v72-darwin-x64 --napi_version=4 --node_abi_napi=napi' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/Users/x/Desktop/p-w/p-r/node_modules/fsevents/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:200:13)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1021:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
node-pre-gyp ERR! System Darwin 18.6.0
node-pre-gyp ERR! command \"/usr/local/Cellar/node/12.3.1/bin/node\" \"/Users/x/Desktop/p-w/p-r/node_modules/fsevents/node_modules/node-pre-gyp/bin/node-pre-gyp\" \"install\" \"--fallback-to-build\"
node-pre-gyp ERR! cwd /Users/x/Desktop/p-w/p-r/node_modules/fsevents
node-pre-gyp ERR! node -v v12.3.1
node-pre-gyp ERR! node-pre-gyp -v v0.10.3
node-pre-gyp ERR! not ok
Failed to execute 'node-gyp build --fallback-to-build --module=/Users/x/Desktop/p-w/p-r/node_modules/fsevents/lib/binding/Release/node-v72-darwin-x64/fse.node --module_name=fse --module_path=/Users/x/Desktop/p-w/p-r/node_modules/fsevents/lib/binding/Release/node-v72-darwin-x64 --napi_version=4 --node_abi_napi=napi' (1)
make: *** [Release/obj.target/fse/fsevents.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/Cellar/node/12.3.1/libexec/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:200:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Darwin 18.6.0
gyp ERR! command \"/usr/local/Cellar/node/12.3.1/bin/node\" \"/usr/local/Cellar/node/12.3.1/libexec/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"build\" \"--fallback-to-build\" \"--module=/Users/x/Desktop/p-w/p-r/node_modules/fsevents/lib/binding/Release/node-v72-darwin-x64/fse.node\" \"--module_name=fse\" \"--module_path=/Users/x/Desktop/p-w/p-r/node_modules/fsevents/lib/binding/Release/node-v72-darwin-x64\" \"--napi_version=4\" \"--node_abi_napi=napi\"
gyp ERR! cwd /Users/x/Desktop/p-w/p-r/node_modules/fsevents
gyp ERR! node -v v12.3.1
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok"
What may be the causes of that?
there might be some dependence issue, try
npm rebuild
if not success, try to remove package-lock.json, node_modules, install again
rm -rf node_modules && rm package-lock.json && npm install
same issue
Remove package-lock.json and node_modules. Run
npm install
Related
I am Trying to run a titanium project with appcelerator studio in simulator but getting some node error, I have used same node version from which it was developed, please help me out
Error below
File
"/Users/czmac01/.appcelerator/install/8.0.0/package/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py", line 971, in WriteActions
"Spaces in action output filenames not supported (%s)" % output)
"Spaces in action output filenames not supported (%s)" % output)
AssertionError: Spaces in action output filenames not supported (/Users/czmac01/Library/Application Support/Titanium/mobilesdk/osx/9.1.0.v20200422074103/node_modules/node-ios-device/build/MobileDevice.framework)
AssertionError: Spaces in action output filenames not supported (/Users/czmac01/Library/Application Support/Titanium/mobilesdk/osx/9.1.0.v20200422074103/node_modules/node-ios-device/build/MobileDevice.framework)
gyp ERR! configure error
gyp ERR! configure error
gyp ERR! gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/Users/czmac01/.appcelerator/install/8.0.0/package/node_modules/node-gyp/lib/configure.js:351:16)
gyp ERR! stack at ChildProcess.emit (events.js:321:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/Users/czmac01/.appcelerator/install/8.0.0/package/node_modules/node-gyp/lib/configure.js:351:16)
gyp ERR! stack at ChildProcess.emit (events.js:321:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Darwin 19.0.0
gyp ERR! command "/usr/local/bin/node" "/Users/czmac01/.appcelerator/install/8.0.0/package/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/Users/czmac01/Library/Application Support/Titanium/mobilesdk/osx/9.1.0.v20200422074103/node_modules/node-ios-device/binding/node-v79-darwin-x64/node_ios_device.node" "--module_name=node_ios_device" "--module_path=/Users/czmac01/Library/Application Support/Titanium/mobilesdk/osx/9.1.0.v20200422074103/node_modules/node-ios-device/binding/node-v79-darwin-x64" "--napi_version=5" "--node_abi_napi=napi"
gyp ERR! cwd /Users/czmac01/Library/Application Support/Titanium/mobilesdk/osx/9.1.0.v20200422074103/node_modules/node-ios-device
gyp gyp ERR!ERR! Systemnode -v Darwin 19.0.0
v13.6.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR!gyp commandERR! "/usr/local/bin/node" "/Users/czmac01/.appcelerator/install/8.0.0/package/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/Users/czmac01/Library/Application Support/Titanium/mobilesdk/osx/9.1.0.v20200422074103/node_modules/node-ios-device/binding/node-v79-darwin-x64/node_ios_device.node" "--module_name=node_ios_device" "--module_path=/Users/czmac01/Library/Application Support/Titanium/mobilesdk/osx/9.1.0.v20200422074103/node_modules/node-ios-device/binding/node-v79-darwin-x64" "--napi_version=5" "--node_abi_napi=napi"
not ok
gyp ERR! cwd /Users/czmac01/Library/Application Support/Titanium/mobilesdk/osx/9.1.0.v20200422074103/node_modules/node-ios-device
gyp ERR! node -v v13.6.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /Users/czmac01/.appcelerator/install/8.0.0/package/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/Users/czmac01/Library/Application Support/Titanium/mobilesdk/osx/9.1.0.v20200422074103/node_modules/node-ios-device/binding/node-v79-darwin-x64/node_ios_device.node --module_name=node_ios_device --module_path=/Users/czmac01/Library/Application Support/Titanium/mobilesdk/osx/9.1.0.v20200422074103/node_modules/node-ios-device/binding/node-v79-darwin-x64 --napi_version=5 --node_abi_napi=napi' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/Users/czmac01/Library/Application Support/Titanium/mobilesdk/osx/9.1.0.v20200422074103/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:321:20)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1028:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
node-pre-gyp ERR! System Darwin 19.0.0
node-pre-gyp ERR! command "/usr/local/bin/node" "/Users/czmac01/Library/Application Support/Titanium/mobilesdk/osx/9.1.0.v20200422074103/node_modules/node-pre-gyp/bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /Users/czmac01/Library/Application Support/Titanium/mobilesdk/osx/9.1.0.v20200422074103/node_modules/node-ios-device
node-pre-gyp ERR! node -v v13.6.0
node-pre-gyp ERR! node-pre-gyp -v v0.10.3
node-pre-gyp ERR! not ok
I would stick to the LTS version 12.16.x and try to re-install the node packages after you moved to node 12.16.x:
npm install -g titanium appcelerator alloy
Also keep in mind: 9.1.0.v20200422074103 is a nightly build, so not a supported version.
Another thing to look at:
Since there is this error Spaces in action output filenames not supported you could edit:
/Users/czmac01/.appcelerator/install/8.0.0/package/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py and add a log where it throws that error to see which file is making the problem.
I'm trying to install grpc locally via npm install, and command I used was sudo npm i grpc --unsafe-perm. I get an error, and I'm not sure what I'm doing wrong. I'm on linux, ubuntu 18.04.1. I have node v11 and npm v6.4.1.
Here is the error log:
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:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
gyp ERR! System Linux 4.15.0-38-generic
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--library=static_library" "--module=/media/binyamin/Seagate Expansion Drive/Documents/GitHub/admin-app/node_modules/grpc/src/node/extension_binary/node-v67-linux-x64-glibc/grpc_node.node" "--module_name=grpc_node" "--module_path=/media/binyamin/Seagate Expansion Drive/Documents/GitHub/admin-app/node_modules/grpc/src/node/extension_binary/node-v67-linux-x64-glibc" "--napi_version=3" "--node_abi_napi=napi"
gyp ERR! cwd /media/binyamin/Seagate Expansion Drive/Documents/GitHub/admin-app/node_modules/grpc
gyp ERR! node -v v11.0.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/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --library=static_library --module=/media/binyamin/Seagate Expansion Drive/Documents/GitHub/admin-app/node_modules/grpc/src/node/extension_binary/node-v67-linux-x64-glibc/grpc_node.node --module_name=grpc_node --module_path=/media/binyamin/Seagate Expansion Drive/Documents/GitHub/admin-app/node_modules/grpc/src/node/extension_binary/node-v67-linux-x64-glibc --napi_version=3 --node_abi_napi=napi' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/media/binyamin/Seagate Expansion Drive/Documents/GitHub/admin-app/node_modules/grpc/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:182:13)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:962:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
node-pre-gyp ERR! System Linux 4.15.0-38-generic
node-pre-gyp ERR! command "/usr/local/bin/node" "/media/binyamin/Seagate Expansion Drive/Documents/GitHub/admin-
app/node_modules/grpc/node_modules/.bin/node-pre-gyp" "install" "--
fallback-to-build" "--library=static_library"
node-pre-gyp ERR! cwd /media/binyamin/Seagate Expansion
Drive/Documents/GitHub/admin-app/node_modules/grpc
node-pre-gyp ERR! node -v v11.0.0
node-pre-gyp ERR! node-pre-gyp -v v0.10.3
node-pre-gyp ERR! not ok
I am trying to install opencv for vehicle detection in realtime. While installing opencv in terminal it always fail to install
Parameshs-MacBook-Air:pyrky_nodejs parameshv$ npm install opencv --save
opencv#6.0.0 install /Users/parameshv/pyrky_nodejs/node_modules/opencv
node-pre-gyp install --fallback-to-build
node-pre-gyp ERR! Tried to download(403): https://node-opencv.s3.amazonaws.com/opencv/v6.0.0/Release/node-v64-darwin-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for opencv#6.0.0 and node#10.8.0 (node-v64 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp ERR! Tried to download(undefined): https://node-opencv.s3.amazonaws.com/opencv/v6.0.0/Release/node-v64-darwin-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for opencv#6.0.0 and node#10.8.0 (node-v64 ABI, unknown) (falling back to source compile with node-gyp)
CXX(target) Release/obj.target/opencv/src/init.o
CXX(target) Release/obj.target/opencv/src/init.o
sed: ./Release/.deps/Release/obj.target/opencv/src/init.o.d.raw: No such file or directory
make: *** [Release/obj.target/opencv/src/init.o] Error 1
CXX(target) Release/obj.target/opencv/src/Matrix.o
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:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:238:12)
gyp ERR! System Darwin 17.7.0
gyp ERR! command "/usr/local/Cellar/node/10.8.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/Users/parameshv/pyrky_nodejs/node_modules/opencv/build/opencv/v6.0.0/Release/node-v64-darwin-x64/opencv.node" "--module_name=opencv" "--module_path=/Users/parameshv/pyrky_nodejs/node_modules/opencv/build/opencv/v6.0.0/Release/node-v64-darwin-x64"
gyp ERR! cwd /Users/parameshv/pyrky_nodejs/node_modules/opencv
gyp ERR! node -v v10.8.0
gyp ERR! node-gyp -v v3.7.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/Cellar/node/10.8.0/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/parameshv/pyrky_nodejs/node_modules/opencv/build/opencv/v6.0.0/Release/node-v64-darwin-x64/opencv.node --module_name=opencv --module_path=/Users/parameshv/pyrky_nodejs/node_modules/opencv/build/opencv/v6.0.0/Release/node-v64-darwin-x64' (1)
node-pre-gyp ERR! stack at ChildProcess. (/Users/parameshv/pyrky_nodejs/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:182:13)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:962:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:249:5)
node-pre-gyp ERR! System Darwin 17.7.0
node-pre-gyp ERR! command "/usr/local/Cellar/node/10.8.0/bin/node" "/Users/parameshv/pyrky_nodejs/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /Users/parameshv/pyrky_nodejs/node_modules/opencv
node-pre-gyp ERR! node -v v10.8.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.39
node-pre-gyp ERR! not ok
Failed to execute '/usr/local/Cellar/node/10.8.0/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/parameshv/pyrky_nodejs/node_modules/opencv/build/opencv/v6.0.0/Release/node-v64-darwin-x64/opencv.node --module_name=opencv --module_path=/Users/parameshv/pyrky_nodejs/node_modules/opencv/build/opencv/v6.0.0/Release/node-v64-darwin-x64' (1)
npm WARN opencv#6.0.0 had bundled packages that do not match the required version(s). They have been replaced with non-bundled versions.
npm WARN pyrky#1.0.0 No repository field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! opencv#6.0.0 install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the opencv#6.0.0 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/parameshv/.npm/_logs/2018-09-04T05_34_09_181Z-debug.log
Parameshs-MacBook-Air:pyrky_nodejs parameshv$
Parameshs-MacBook-Air:pyrky_nodejs parameshv$
Parameshs-MacBook-Air:pyrky_nodejs parameshv$ ../src/Matrix.cc:2:10: fatal error: 'Matrix.h' file not found
include "Matrix.h"
^~~~~~~~~~
1 error generated.
make: *** [Release/obj.target/opencv/src/Matrix.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:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:238:12)
gyp ERR! System Darwin 17.7.0
gyp ERR! command "/usr/local/Cellar/node/10.8.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/Users/parameshv/pyrky_nodejs/node_modules/opencv/build/opencv/v6.0.0/Release/node-v64-darwin-x64/opencv.node" "--module_name=opencv" "--module_path=/Users/parameshv/pyrky_nodejs/node_modules/opencv/build/opencv/v6.0.0/Release/node-v64-darwin-x64"
gyp ERR! cwd /Users/parameshv/pyrky_nodejs/node_modules/opencv
gyp ERR! node -v v10.8.0
gyp ERR! node-gyp -v v3.7.0
gyp ERR! not ok
Tried to fix this installing
brew tap brewsci/science
brew install pkg-config opencv#2
brew link opencv#2 --force
npm install opencv --save
How to install opencv npm in mac os? Any help much appreciates pls....
I'm unable to install Parse Server.
sudo npm install -g parse-server
/usr/local/bin/parse-server -> /usr/local/lib/node_modules/parse-server/bin/parse-server
> bcrypt#1.0.2 install /usr/local/lib/node_modules/parse-server/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.2/bcrypt_lib-v1.0.2-node-v46-linux-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for bcrypt#1.0.2 and node#4.7.2 (node-v46 ABI) (falling back to source compile with node-gyp)
gyp WARN EACCES user "root" does not have permission to access the dev dir "/home/archie/.node-gyp/4.7.2"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/parse-server/node_modules/bcrypt/.node-gyp"
make: Entering directory '/usr/local/lib/node_modules/parse-server/node_modules/bcrypt/build'
make: *** No rule to make target '../.node-gyp/4.7.2/include/node/common.gypi', needed by 'Makefile'. Stop.
make: Leaving directory '/usr/local/lib/node_modules/parse-server/node_modules/bcrypt/build'
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/node-gyp/lib/build.js:258:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:12)
gyp ERR! System Linux 4.10.0-24-generic
gyp ERR! command "/usr/bin/nodejs" "/usr/local/lib/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/usr/local/lib/node_modules/parse-server/node_modules/bcrypt/lib/binding/bcrypt_lib.node" "--module_name=bcrypt_lib" "--module_path=/usr/local/lib/node_modules/parse-server/node_modules/bcrypt/lib/binding"
gyp ERR! cwd /usr/local/lib/node_modules/parse-server/node_modules/bcrypt
gyp ERR! node -v v4.7.2
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/bin/nodejs /usr/local/lib/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/usr/local/lib/node_modules/parse-server/node_modules/bcrypt/lib/binding/bcrypt_lib.node --module_name=bcrypt_lib --module_path=/usr/local/lib/node_modules/parse-server/node_modules/bcrypt/lib/binding' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/parse-server/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:87:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:172:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:854:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:222:5)
node-pre-gyp ERR! System Linux 4.10.0-24-generic
node-pre-gyp ERR! command "/usr/bin/nodejs" "/usr/local/lib/node_modules/parse-server/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /usr/local/lib/node_modules/parse-server/node_modules/bcrypt
node-pre-gyp ERR! node -v v4.7.2
node-pre-gyp ERR! node-pre-gyp -v v0.6.32
node-pre-gyp ERR! not ok
Failed to execute '/usr/bin/nodejs /usr/local/lib/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/usr/local/lib/node_modules/parse-server/node_modules/bcrypt/lib/binding/bcrypt_lib.node --module_name=bcrypt_lib --module_path=/usr/local/lib/node_modules/parse-server/node_modules/bcrypt/lib/binding' (1)
How to fix
ode-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-v46-linux-x64.tar.gz
?
to install parse server please type:
npm install -g parse-server mongodb-runner
After if you want to run it locally:
# mongodb-runner start
# parse-server --appId APPLICATION_ID --masterKey MASTER_KEY --databaseURI mongodb://localhost/test
when I make sudo npm rebuild initially everything works correctly but then I get this type of error:
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:343:16)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:820:12)
gyp ERR! System Linux 3.13.0-63-generic
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/.../.../node_modules/pg
gyp ERR! node -v v0.10.40
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok
How can I fix this issue?