Node -gyp configure build error

I am trying to compile third-party code to add to node. I have node: 0.10.12, node -gyp: 0.10.6; I installed the binary version of node instead of compiling.

When I started "node -gyp configure build", I got a timeout error, because I'm behind a firewall and use a proxy server:

node-gyp configure build gyp info it worked if it ends with ok gyp info using node-gyp@0.10.6 gyp info using node@0.10.12 | linux | x64 gyp http GET http://nodejs.org/dist/v0.10.12/node-v0.10.12.tar.gz gyp WARN install got an error, rolling back install gyp ERR! configure error gyp ERR! stack Error: connect ETIMEDOUT gyp ERR! stack at errnoException (net.js:901:11) gyp ERR! stack at Object.afterConnect [as oncomplete] (net.js:892:19) gyp ERR! System Linux 2.6.32-279.el6.x86_64 gyp ERR! command "node" "/usr/bin/node-gyp" "configure" "build" gyp ERR! cwd /root/software/WebFM/tvanode-master gyp ERR! node -v v0.10.12 gyp ERR! node-gyp -v v0.10.6 gyp ERR! not ok 

Why is he trying to get the same version of node from nodejs.org instead of using the local one that I have?

When trying using node -gyp configure build --proxy = http://myproxy.com "I got the wrong error:

 gyp info it worked if it ends with ok gyp info using node-gyp@0.10.6 gyp info using node@0.10.12 | linux | x64 gyp http GET http://nodejs.org/dist/v0.10.12/node-v0.10.12.tar.gz gyp http 200 http://nodejs.org/dist/v0.10.12/node-v0.10.12.tar.gz gyp WARN install got an error, rolling back install gyp ERR! configure error gyp ERR! stack Error: incorrect header check gyp ERR! stack at Zlib._binding.onerror (zlib.js:295:17) gyp ERR! System Linux 2.6.32-279.el6.x86_64 gyp ERR! command "node" "/usr/bin/node-gyp" "--proxy=http://myproxy.com/" "configure" "build" gyp ERR! cwd /root/software/WebFM/tvanode-master gyp ERR! node -v v0.10.12 gyp ERR! node-gyp -v v0.10.6 gyp ERR! not ok 

I compiled and installed node.js 0.10.15; and tried to lower it to 0.8.15, but got the same error.

+4
source share

Source: https://habr.com/ru/post/1496897/


All Articles