要利用c++编写扩展,环境准备是不是只要python和node-gyp就够了?
发布于 1个月前 作者 hwoarangzk 211 次浏览 来自 问答

有些文章说要vc和node,有些又说要python和node-gyp,求解~

5 回复

我的node是v0.11.14的

你看node-gyp的GitHub项目页面,前面有编译的环境要求。Windows的话应该是要VS和Python的

多谢!我去看看先

visual studio c++ 6.0可行么?别的vs找了半天没法成功下载的

我在执行node-gyp configure的时候报错,为啥要去下一个node的压缩包?

gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp http GET http://nodejs.org/dist/v0.11.14-nightly-20140819-pre/node-v0.11.14-
nightly-20140819-pre.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 exports._errnoException (util.js:742:11)
gyp ERR! stack     at Object.afterConnect [as oncomplete] (net.js:978:19)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\\Users\\Administrator\\AppData\\Roaming\\npm\\node_m
odules\\node-gyp\\bin\\node-gyp.js" "configure"
gyp ERR! cwd D:\projects\addons
gyp ERR! node -v v0.11.14-nightly-20140819-pre
gyp ERR! node-gyp -v v2.0.1
gyp ERR! not ok
回到顶部