Windows 8:`node gyp rebuild`退出状态1安装contextify作为zombi的依赖项

2024-05-20 00:01:02 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试安装zombie js,并得到以下错误:

> contextify@0.1.8 install
C:\Users\User\Documents\ArbeitPhilipp\clieman\billing\node_modules\zombie\node_modules\jsdom\node_modules\contextify
> node-gyp rebuild

Das System kann den angegebenen Pfad nicht finden.

C:\Users\User\Documents\ArbeitPhilipp\clieman\billing\node_modules\zombie\node_modules\jsdom\node_modules\contextify>node "C:\Program Files (x86)\nodejs\nod
e_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.2.9200
gyp ERR! command "node" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd
C:\Users\User\Documents\ArbeitPhilipp\clieman\billing\node_modules\zombie\node_modules\jsdom\node_modules\contextify
gyp ERR! node -v v0.10.24
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok

我在Windows 8上工作(64x)

节点:v0.10.24(32)

净现值:1.3.21

Python:2.7(32)

Python的方法在路径中(C:\ Python27\Python.exe;) Python:C:\Python27\ PYTHON:C:\ Python27\PYTHON.exe

npm install --verbose contextify 2>&1 | grep gyp

作为输出:

C:\Users\User\Documents\ArbeitPhilipp\clieman\billing\node_modules\contextify>node    "C:\Program Files (x86)\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\n
ode_modules\node-gyp\bin\node-gyp.js" rebuild
gyp npm verb unsafe-perm in lifecycle true
npm ERR! contextify@0.1.8 install: `node-gyp rebuild`
npm ERR!     node-gyp rebuild

我已经读过这个主题的所有问题,但没有发现Decision对我有帮助。

我非常感谢你的帮助!


Tags: modulesnodenpmbinjsusersdocumentserr
3条回答

我也有类似的问题,或者我会说完全一样的话!最后(在运行node gyp rebuild/npm install时),我注意到一条错误消息,指出“MSBUILD:error MSB4132:无法识别工具版本“2.0”。可用的ls版本也是“4.0”

谷歌给我的答案是https://github.com/chjj/pty.js/issues/60 “安装visual studio express 2013(带c++redist的桌面),这将有帮助”

你可以在这里下载:http://www.microsoft.com/en-gb/download/details.aspx?id=40787

cmd作为管理员->;npm安装->;一切正常!:天

希望能有帮助!

干杯 格雷格

在此处下载visual studio express 2013: http://www.microsoft.com/en-us/download/details.aspx?id=43729

如果有其他人发现了这个问题:我们将其跟踪(手工调试..)到某个节点绑定脚本,该脚本在为msbuild创建生成脚本时执行node.exe。

the binding.gyp from contextify包含: 'include_dirs': ["<!(node -e \"require('nan')\")"],

从而产生: Das System kann den angegebenen Pfad nicht findenThe System Cannot Find the Path Specified
即使知道python无法调用node.exe并找到require(“nan”)模块,我们还是放弃了这一点。如果任何人有更多的见解,我们做,请分享。因为这个,我有不眠之夜;)

相关问题 更多 >