5

我正在尝试编译第 3 方代码以添加到节点。我有节点:0.10.12,节点gyp:0.10.6;我安装了二进制版本的节点而不是编译。

运行“node-gyp configure build”时出现超时错误,因为我在防火墙后面并使用代理服务器:

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  

为什么它会尝试从 nodejs.org 检索相同版本的节点,而不是使用我拥有的本地节点?

当尝试使用“node-gyp configure build --proxy= http://myproxy.com ”时,我得到了一个不正确的错误:

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  

我编译并安装了node.js 0.10.15;并尝试将其降级到 0.8.15 但得到了同样的错误。

4

0 回答 0