This is the error I get when running npm install --save mocha ganache-cli web3#1.0.0-beta.26 :
rohitgoud$ npm install --save mocha ganache-cli web3#1.0.0-beta.26
> scrypt#6.0.3 preinstall /Users/rohitgoud/node_modules/scrypt
> node node-scrypt-preinstall.js
Error: Error: Command failed: ./configure
configure: error: in `/Users/rohitgoud/node_modules/scrypt/scrypt/scrypt-1.2.0':
configure: error: C compiler cannot create executables
See `config.log' for more details
> scrypt#6.0.3 install /Users/rohitgoud/node_modules/scrypt
> node-gyp rebuild
gyp ERR! configure error
gyp ERR! stack Error: Python executable "/anaconda3/bin/python" is v3.6.4, which is not supported by gyp.
gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0.
gyp ERR! stack at PythonFinder.failPythonVersion (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:492:19)
gyp ERR! stack at PythonFinder.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:474:14)
gyp ERR! stack at ChildProcess.exithandler (child_process.js:267:7)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at maybeClose (internal/child_process.js:925:16)
gyp ERR! stack at Socket.stream.socket.on (internal/child_process.js:346:11)
gyp ERR! stack at emitOne (events.js:116:13)
gyp ERR! stack at Socket.emit (events.js:211:7)
gyp ERR! stack at Pipe._handle.close [as _onclose] (net.js:567:12)
gyp ERR! System Darwin 16.7.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/rohitgoud/node_modules/scrypt
gyp ERR! node -v v8.11.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open '/Users/rohitgoud/package.json'
npm WARN webpack-cli#2.0.15 requires a peer of webpack#^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN rohitgoud No description
npm WARN rohitgoud No repository field.
npm WARN rohitgoud No README data
npm WARN rohitgoud No license field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! scrypt#6.0.3 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the scrypt#6.0.3 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/rohitgoud/.npm/_logs/2018-04-26T01_45_43_548Z-debug.log
you need install python2.7(recommend)
Related
I could not install library of tensorflow.js module in my project, in local machine. It's portraying the problem as follows:
Building TensorFlow Node.js bindings
C:\mlwithjs\tensorflowjs\node_modules\#tensorflow\tfjs-node\scripts\install.js:176
throw new Error('node-gyp rebuild failed with: ' + err);
^
Error: node-gyp rebuild failed with: Error: Command failed: node-gyp rebuild
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
gyp ERR! build error
gyp ERR! stack Error: `C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\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 Windows_NT 10.0.17763
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\mlwithjs\tensorflowjs\node_modules\#tensorflow\tfjs-node
gyp ERR! node -v v10.15.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
at cp.exec (C:\mlwithjs\tensorflowjs\node_modules\#tensorflow\tfjs-node\scripts\install.js:176:13)
at ChildProcess.exithandler (child_process.js:301:5)
at ChildProcess.emit (events.js:182:13)
at maybeClose (internal/child_process.js:962:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
npm WARN rollback Rolling back #types/seedrandom#2.4.27 failed (this is probably harmless): EPERM: operation not permitted, rmdir 'C:\mlwithjs\tensorflowjs\node_modules\#types'
npm WARN rollback Rolling back #types/webgl2#0.0.4 failed (this is probably harmless): EPERM: operation not permitted, rmdir 'C:\mlwithjs\tensorflowjs\node_modules\#types'npm WARN tensorflowjs#1.0.0 No repository field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! #tensorflow/tfjs-node#0.2.1 install: `node scripts/install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the #tensorflow/tfjs-node#0.2.1 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! C:\Users\Saqib\AppData\Roaming\npm-cache\_logs\2019-01-03T15_18_04_741Z-debug.log
I have tried a command npm install -g build tools. Although it's installing other modules.
I am using npm install #tensorflow/tfjs-node command to install it, but it didn't help. I googled for it, but haven't found anything.
I am a bit new to nodejs and I am trying to connect database via nodejs. For connecting I am installing the JDBC but it throws an error like below. Can you help for this?
C:\myDrive\work\samples\nodeapis\simpleapi>npm i --save jdbc
> java#0.9.1 install `enter code here`C:\myDrive\work\samples\nodeapis\simpleapi\node_modules\java
> node-gyp rebuild
C:\myDrive\work\samples\nodeapis\simpleapi\node_modules\java>if not defined npm_config_node_gyp (node "C:\myDrive\apps\node-v10.14.1-win-x64\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\myDrive\apps\node-v10.14.1-win-x64\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
gyp ERR! configure error
gyp ERR! stack Error: Command failed: C:\myDrive\apps\Python\Python37\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack File "<string>", line 1
gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack at ChildProcess.exithandler (child_process.js:289:12)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at maybeClose (internal/child_process.js:962:16)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
gyp ERR! System Windows_NT 10.0.14393
gyp ERR! command "C:\\myDrive\\apps\\node-v10.14.1-win-x64\\node.exe" "C:\\myDrive\\apps\\node-v10.14.1-win-x64\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\myDrive\work\samples\nodeapis\simpleapi\node_modules\java
gyp ERR! node -v v10.14.1
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open 'C:\myDrive\work\samples\nodeapis\simpleapi\package.json'
npm WARN simpleapi No description
npm WARN simpleapi No repository field.
npm WARN simpleapi No README data
npm WARN simpleapi No license field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! java#0.9.1 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the java#0.9.1 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! C:\Users\<user>\AppData\Roaming\npm-cache\_logs\2018-12-13T07_30_29_595Z-debug.log
After I have installed the lower version of python 2.7.0 this error has gone.
but the below error I got
C:\myDrive\work\samples\nodeapis\simpleapi>npm i --save jdbc
> java#0.9.1 install C:\myDrive\work\samples\nodeapis\simpleapi\node_modules\java
> node-gyp rebuild
C:\myDrive\work\samples\nodeapis\simpleapi\node_modules\java>if not defined npm_config_node_gyp (node "C:\myDrive\apps\node-v10.14.1-win-x64\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\myDrive\apps\node-v10.14.1-win-x64\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: read ECONNRESET
gyp ERR! stack at TLSWrap.onStreamRead (internal/stream_base_commons.js:111:27)
gyp ERR! System Windows_NT 10.0.14393
gyp ERR! command "C:\\myDrive\\apps\\node-v10.14.1-win-x64\\node.exe" "C:\\myDrive\\apps\\node-v10.14.1-win-x64\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\myDrive\work\samples\nodeapis\simpleapi\node_modules\java
gyp ERR! node -v v10.14.1
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open 'C:\myDrive\work\samples\nodeapis\simpleapi\package.json'
npm WARN simpleapi No description
npm WARN simpleapi No repository field.
npm WARN simpleapi No README data
npm WARN simpleapi No license field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! java#0.9.1 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the java#0.9.1 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! C:\Users\<user>\AppData\Roaming\npm-cache\_logs\2018-12-13T08_15_21_567Z-debug.log
Thanks in advance
I think you need to install node-gyp and then try again, it is a cross-platform command line tool written in nodejs for compiling native addon modules.
I get an issue when installing node-sass on my server (Ubuntu 16.04). On my local server I haven't theses errors...
NodeJS version : v10.2.1
Npm version : 5.6.0
Node sass version : ^4.9.0
Error message :
****#web-test:/var/www/****$ sudo npm i node-sass
> node-sass#4.9.0 install /var/www/****/node_modules/node-sass
> node scripts/install.js
Unable to save binary /var/www/****/node_modules/node-sass/vendor/linux-x64-64 : { Error: EACCES: permission denied, mkdir '/var/www/****/node_modules/node-sass/vendor'
at Object.fs.mkdirSync (fs.js:872:3)
at sync (/var/www/****/node_modules/mkdirp/index.js:71:13)
at Function.sync (/var/www/****/node_modules/mkdirp/index.js:77:24)
at checkAndDownloadBinary (/var/www/****/node_modules/node-sass/scripts/install.js:114:11)
at Object.<anonymous> (/var/www/****/node_modules/node-sass/scripts/install.js:157:1)
at Module._compile (internal/modules/cjs/loader.js:702:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
at Module.load (internal/modules/cjs/loader.js:612:32)
at tryModuleLoad (internal/modules/cjs/loader.js:551:12)
at Function.Module._load (internal/modules/cjs/loader.js:543:3)
errno: -13,
syscall: 'mkdir',
code: 'EACCES',
path: '/var/www/****/node_modules/node-sass/vendor' }
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/var/www/****/node_modules/node-sass/build'
gyp ERR! System Linux 4.4.0-116-generic
gyp ERR! command "/usr/local/bin/node" "/var/www/****/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /var/www/****/node_modules/node-sass
gyp ERR! node -v v10.2.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
Build failed with error code: 1
npm WARN ****#1.0.0 No repository field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass#4.9.0 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass#4.9.0 postinstall 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! /home/****/.npm/_logs/2018-06-04T14_54_18_635Z-debug.log
Permissions on the folder : drwxr-xr-x 11 root root 4096 june 4 17:25 ****
Error after updating rights :
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:258:23)
gyp ERR! stackbcrypt_lib.target.mk:97: recipe for target 'Release/obj.target/bcrypt_lib/src/bcrypt_node.o' failed
make: *** [Release/obj.target/bcrypt_lib/src/bcrypt_node.o] Error 1
make: Leaving directory '/var/www/****/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/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:237:12)
gyp ERR! System Linux 4.4.0-116-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" "--module=/var/www/****/node_modules/bcrypt/lib/binding/bcrypt_lib.node" "--module_name=bcrypt_lib" "--module_path=/var/www/****/node_modules/bcrypt/lib/binding"
gyp ERR! cwd /var/www/****/node_modules/bcrypt
gyp ERR! node -v v10.2.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:237:12)
gyp ERR! System Linux 4.4.0-116-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" "--module=/var/www/****/node_modules/bcrypt/lib/binding/bcrypt_lib.node" "--module_name=bcrypt_lib" "--module_path=/var/www/****/node_modules/bcrypt/lib/binding"
gyp ERR! cwd /var/www/****/node_modules/bcrypt
gyp ERR! node -v v10.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 build --fallback-to-build --module=/var/www/****/node_modules/bcrypt/lib/binding/bcrypt_lib.node --module_name=bcrypt_lib --module_path=/var/www/****/node_modules/bcrypt/lib/binding' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/var/www/****/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:961:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:5)
node-pre-gyp ERR! System Linux 4.4.0-116-generic
node-pre-gyp ERR! command "/usr/local/bin/node" "/var/www/****/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" node-pre-gyp ERR! cwd /var/www/****/node_modules/bcrypt
node-pre-gyp ERR! node -v v10.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 build --fallback-to-build --module=/var/www/****/node_modules/bcrypt/lib/binding/bcrypt_lib.node --module_name=bcrypt_lib --module_path=/var/www/****/node_modules/bcrypt/lib/binding' (1)
npm WARN ****#1.0.0 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.4 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
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.
Right solution (after many searches) :
sudo rm -rf ~/.node-gyp
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
sudo npm i --unsafe-perm
It seems that the root user is the only one who has access to the /www/var folder. It would be better to create a dedicated user for that.
First of all, check with which user you're currently logged in with the following command:
$ whoami
And update the permissions of your destination folder for that user:
sudo chown -R $USER /var/www/[YOUR FOLDER]
And finally run npm install again.
I am getting following error while installing opencv in windows 7 and node version #6
> opencv#6.0.0 install C:\Users\admin1\Desktop\video_post\video_post\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/Relea
se/node-v48-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for opencv#6.0.0 and node#6.7.0 (node-v48 ABI) (fal
ling back to source compile with node-gyp)
C:\Users\admin1\Desktop\video_post\video_post\node_modules\opencv>if not defined npm_config_node_g
yp (node "C:\Users\admin1\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin\\..\..\node_module
s\node-gyp\bin\node-gyp.js" clean ) else (node "" clean )
C:\Users\admin1\Desktop\video_post\video_post\node_modules\opencv>if not defined npm_config_node_g
yp (node "C:\Users\admin1\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin\\..\..\node_module
s\node-gyp\bin\node-gyp.js" configure --fallback-to-build --module=C:\Users\admin1\Desktop\video_p
ost\video_post\node_modules\opencv\build\opencv\v6.0.0\Release\node-v48-win32-x64\opencv.node --mo
dule_name=opencv --module_path=C:\Users\admin1\Desktop\video_post\video_post\node_modules\opencv\b
uild\opencv\v6.0.0\Release\node-v48-win32-x64 ) else (node "" configure --fallback-to-build --mod
ule=C:\Users\admin1\Desktop\video_post\video_post\node_modules\opencv\build\opencv\v6.0.0\Release\
node-v48-win32-x64\opencv.node --module_name=opencv --module_path=C:\Users\admin1\Desktop\video_po
st\video_post\node_modules\opencv\build\opencv\v6.0.0\Release\node-v48-win32-x64 )
C:\Users\admin1\Desktop\video_post\video_post\node_modules\opencv\utils\find-opencv.js:39
throw new Error("ERROR: OPENCV_DIR doesn't seem to be defined");
^
Error: ERROR: OPENCV_DIR doesn't seem to be defined
at C:\Users\admin1\Desktop\video_post\video_post\node_modules\opencv\utils\find-opencv.js:39:1
9
at ChildProcess.exithandler (child_process.js:197:7)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
gyp: Call to 'node utils/find-opencv.js --cflags' returned exit status 1 while in binding.gyp. whi
le trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (C:\Users\admin1\AppData\Roaming\npm\node_modules\npm\
node_modules\node-gyp\lib\configure.js:336:16)
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.1.7600
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\admin1\\AppData\\Roaming\\npm\\
node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--
module=C:\\Users\\admin1\\Desktop\\video_post\\video_post\\node_modules\\opencv\\build\\opencv\\v6
.0.0\\Release\\node-v48-win32-x64\\opencv.node" "--module_name=opencv" "--module_path=C:\\Users\\a
dmin1\\Desktop\\video_post\\video_post\\node_modules\\opencv\\build\\opencv\\v6.0.0\\Release\\node
-v48-win32-x64"
gyp ERR! cwd C:\Users\admin1\Desktop\video_post\video_post\node_modules\opencv
gyp ERR! node -v v6.7.0
gyp ERR! node-gyp -v v3.6.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'node-gyp.cmd configure --fallback-to-build --mod
ule=C:\Users\admin1\Desktop\video_post\video_post\node_modules\opencv\build\opencv\v6.0.0\Release\
node-v48-win32-x64\opencv.node --module_name=opencv --module_path=C:\Users\admin1\Desktop\video_po
st\video_post\node_modules\opencv\build\opencv\v6.0.0\Release\node-v48-win32-x64' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:\Users\admin1\Desktop\video_post\video_
post\node_modules\opencv\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.1.7600
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\admin1\\Desktop\\video
_post\\video_post\\node_modules\\opencv\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install"
"--fallback-to-build"
node-pre-gyp ERR! cwd C:\Users\admin1\Desktop\video_post\video_post\node_modules\opencv
node-pre-gyp ERR! node -v v6.7.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.34
node-pre-gyp ERR! not ok
Failed to execute 'node-gyp.cmd configure --fallback-to-build --module=C:\Users\admin1\Desktop\vid
eo_post\video_post\node_modules\opencv\build\opencv\v6.0.0\Release\node-v48-win32-x64\opencv.node
--module_name=opencv --module_path=C:\Users\admin1\Desktop\video_post\video_post\node_modules\open
cv\build\opencv\v6.0.0\Release\node-v48-win32-x64' (1)
npm WARN video_post# No description
npm WARN video_post# No repository field.
npm WARN video_post# No license field.
npm WARN In opencv#6.0.0 replacing bundled version of node-pre-gyp with node-pre-gyp#0.6.34
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 '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 opencv 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 opencv
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls opencv
npm ERR! There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\admin1\AppData\Roaming\npm-cache\_logs\2017-05-06T05_25_57_891Z-debug.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:267:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:107:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1045:12)
gyp ERR! System Linux 3.2.0-40-virtual
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/ubuntu/grooform/fungroo/node_modules/bcrypt
gyp ERR! node -v v0.11.12
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok
npm ERR! bcrypt#0.8.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bcrypt#0.8.0 install script.
npm ERR! 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-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls bcrypt
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.2.0-40-virtual
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! cwd /home/ubuntu/grooform/fungroo
npm ERR! node -v v0.11.12
npm ERR! npm -v 1.4.3
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/ubuntu/grooform/fungroo/npm-debug.log
npm ERR! not ok code 0
I have installed libcurl4-openssl-dev too but still m getting same error
also i have installed python and set HOME to point to /home/ubuntu
can you please help..
TRIED ON A FRESH UBUNTU
getting following error
gyp: Call to 'node -e "require('nan')"' returned exit status 1. while trying to load binding.gyp
npm http 304 https://registry.npmjs.org/pause/0.0.1
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/share/node-gyp/lib/configure.js:431:16)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Linux 3.13.0-36-generic
gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /home/ubuntu/fungroo/node_modules/bcrypt
gyp ERR! node -v v0.10.25
gyp ERR! node-gyp -v v0.10.10
gyp ERR! not ok
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
npm ERR! weird error 1
nan has issues with some (older) versions of the node v0.11 unstable branch, so you will need to upgrade your unstable node version (v0.11.14 is the latest as of this writing) or use a stable version of node (v0.10.33 as of this writing).