我正在尝试安装webworker-thread
,这是一个需要 gyp 的 Node 插件。我遵循了 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位系统。 以下是我的个人检查清单,以节省一些时间:
路径:node已添加到用户和系统路径中。npm添加到了用户路径中。Python路径也已设置。
Python版本:2.7.3,安装在C:\Python27。
VisualStudio C++ 2010和2012 Express均已安装。
node版本:v0.10.8。
所有命令都以管理员权限运行。
执行的命令如下:
npm install -g node-gyp npm install webworker-threads
然后出现了错误。
你们是否注意到我哪里做错了?
非常感谢您的指导!
奇怪的错误
:D - orezvani