I'm getting to install nowjs by 'npm install now' and reach error condition on node-proxy. Then I try to install node-proxy by 'npm install node-proxy' with same condition.
Would you please help me.
make: Entering directory /home/sikancil/nodeapp/xcfw-2/node_modules/node-proxy/build' CXX(target) Release/obj.target/nodeproxy/src/node-proxy.o In file included from ../src/node-proxy.cc:33:0: ../src/./node-proxy.h:37:16: fatal error: v8.h: No such file or directory compilation terminated. make: *** [Release/obj.target/nodeproxy/src/node-proxy.o] Error 1 make: Leaving directory/home/sikancil/nodeapp/xcfw-2/node_modules/node-proxy/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/node-gyp/lib/build.js:255:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:99:17)
gyp ERR! stack at Process._handle.onexit (child_process.js:678:10)
gyp ERR! System Linux 3.2.0-35-generic-pae
gyp ERR! command "node" "/usr/bin/node-gyp" "configure" "build"
gyp ERR! cwd /home/sikancil/nodeapp/xcfw-2/node_modules/node-proxy
gyp ERR! node -v v0.8.16
gyp ERR! node-gyp -v v0.8.2
gyp ERR! not ok
npm ERR! node-proxy@0.6.0 install: node-gyp configure build
npm ERR! sh "-c" "node-gyp configure build" failed with 1
npm ERR!
npm ERR! Failed at the node-proxy@0.6.0 install script.
npm ERR! This is most likely a problem with the node-proxy package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp configure build
npm ERR! You can get their info via:
npm ERR! npm owner ls node-proxy
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.2.0-35-generic-pae
npm ERR! command "nodejs" "/usr/bin/npm" "install" "node-proxy"
npm ERR! cwd /home/sikancil/nodeapp/xcfw-2
npm ERR! node -v v0.8.16
npm ERR! npm -v 1.1.69
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/sikancil/nodeapp/xcfw-2/npm-debug.log
npm ERR! not ok code 0
Reply by @samshull :
I can tell you that it appears that you don't have v8.h in a valid include path. You should include information about which version of node.js that you are using.
Then I was sent a reply :
Thanks, it works fine now..
1st condition are:
1) I'm using Ubuntu 12.04 Desktop,
2) Node.js & NPM installation completed & works fine,
3) I do running from terminal as current user:
sikancil@sikancil-ubuntu:~/nodeapp/xcfw-2$ npm install node-proxy
Then it raise the error logs.. :(
2nd condition are:
1) You told me that I don't have the "v8.h" file, so the compilation process was terminated,
2) Then next step, I'm looking for the file and.. it was missing..
3) I do another way to install using root permission:
sikancil@sikancil-ubuntu:~/nodeapp/xcfw-2$ sudo npm install node-proxy
but the same error raised again.. /* I just think, maybe it's about user permission issue /
4) For the last, I do run the installation by using real root user:
sikancil@sikancil-ubuntu:~/nodeapp/xcfw-2$ sudo su
/ put root password */
root@sikancil-ubuntu:/home/sikancil/nodeapp/xcfw-2$ npm install node-proxy
...and... it works fine without any error raised.
I wrote an email:
I'm getting to install nowjs by 'npm install now' and reach error condition on node-proxy. Then I try to install node-proxy by 'npm install node-proxy' with same condition. Would you please help me.
Thanks.
Logs:
sikancil@sikancil-ubuntu:~/nodeapp/xcfw-2$ npm install node-proxy npm http GET https://registry.npmjs.org/node-proxy npm http 304 https://registry.npmjs.org/node-proxy
make: Entering directory
/home/sikancil/nodeapp/xcfw-2/node_modules/node-proxy/build' CXX(target) Release/obj.target/nodeproxy/src/node-proxy.o In file included from ../src/node-proxy.cc:33:0: ../src/./node-proxy.h:37:16: fatal error: v8.h: No such file or directory compilation terminated. make: *** [Release/obj.target/nodeproxy/src/node-proxy.o] Error 1 make: Leaving directory
/home/sikancil/nodeapp/xcfw-2/node_modules/node-proxy/build' gyp ERR! build error gyp ERR! stack Error:make
failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/node-gyp/lib/build.js:255:23) gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:99:17) gyp ERR! stack at Process._handle.onexit (child_process.js:678:10) gyp ERR! System Linux 3.2.0-35-generic-pae gyp ERR! command "node" "/usr/bin/node-gyp" "configure" "build" gyp ERR! cwd /home/sikancil/nodeapp/xcfw-2/node_modules/node-proxy gyp ERR! node -v v0.8.16 gyp ERR! node-gyp -v v0.8.2 gyp ERR! not ok npm ERR! node-proxy@0.6.0 install:node-gyp configure build
npm ERR!sh "-c" "node-gyp configure build"
failed with 1 npm ERR! npm ERR! Failed at the node-proxy@0.6.0 install script. npm ERR! This is most likely a problem with the node-proxy package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp configure build npm ERR! You can get their info via: npm ERR! npm owner ls node-proxy npm ERR! There is likely additional logging output above.npm ERR! System Linux 3.2.0-35-generic-pae npm ERR! command "nodejs" "/usr/bin/npm" "install" "node-proxy" npm ERR! cwd /home/sikancil/nodeapp/xcfw-2 npm ERR! node -v v0.8.16 npm ERR! npm -v 1.1.69 npm ERR! code ELIFECYCLE npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /home/sikancil/nodeapp/xcfw-2/npm-debug.log npm ERR! not ok code 0
Reply by @samshull :
I can tell you that it appears that you don't have v8.h in a valid include path. You should include information about which version of node.js that you are using.
Then I was sent a reply :
Thanks, it works fine now..
1st condition are: 1) I'm using Ubuntu 12.04 Desktop, 2) Node.js & NPM installation completed & works fine, 3) I do running from terminal as current user: sikancil@sikancil-ubuntu:~/nodeapp/xcfw-2$ npm install node-proxy Then it raise the error logs.. :(
2nd condition are: 1) You told me that I don't have the "v8.h" file, so the compilation process was terminated, 2) Then next step, I'm looking for the file and.. it was missing.. 3) I do another way to install using root permission: sikancil@sikancil-ubuntu:~/nodeapp/xcfw-2$ sudo npm install node-proxy but the same error raised again.. /* I just think, maybe it's about user permission issue / 4) For the last, I do run the installation by using real root user: sikancil@sikancil-ubuntu:~/nodeapp/xcfw-2$ sudo su / put root password */ root@sikancil-ubuntu:/home/sikancil/nodeapp/xcfw-2$ npm install node-proxy ...and... it works fine without any error raised.