节点GYP烦恼我试图安装webworker-thread
S,A节点的插件,需要GYP。我跟着获取设置gyp
说明,到目前为止,试图“rebuild
”时,我仍然得到一个错误:与安装
C:\Program Files\nodejs\node_modules\webworker-threads>node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild
gyp ERR! configure error
gyp ERR! stack Error: spawn ENOENT
gyp ERR! stack at errnoException (child_process.js:980:11)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:771:34)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Program Files\nodejs\node_modules\webworker-threads
gyp ERR! node -v v0.10.8
gyp ERR! node-gyp -v v0.9.5
gyp ERR! not ok
npm ERR! weird error 1
npm ERR! not ok code 0
我是Windows 7 32位系统上。 的sooo腾出一些时间,这里是我个人的清单:
路径:节点是在用户和系统路径。 npm在用户路径中。 Python路径也设置。
- 的Python:2.7.3安装在C:\ Python27
- VisualStudio的C++ 2010和2012年的快速安装
- 节点版本v0.10.8
- 运行具有管理员权限
- 命令执行的一切:NPM安装-g节点-GYP
- NPM安装webworker线程
- 然后会出现错误。
你们有没有机会注意到我做错了什么?
非常感谢提前为您的指导!
我在Linux中有同样的问题,但我导出了一个变量LINK = g ++并且问题消失 – orezvani
export?你怎么表示出口?在linux中有 – Doidel
有环境变量,当你运行'export LINK = g ++'时,你告诉操作系统和所有其他软件'$ LINK'的值是'g ++'。在这里,这个env帮助操作系统通过gcc选择g ++我认为 – orezvani