我正在尝试安装 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) 上工作
Node :v0.10.24 (32)
npm: 1.3.21
python :2.7 (32)
通往 Python 的路径在 PATH 中 (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
我已经阅读了该主题的所有问题,但没有发现对我有帮助的决定。
非常感谢任何帮助!
最佳答案
如果其他人提出这个问题:我们跟踪它(手动调试..)到某个 Node 绑定(bind)脚本,该脚本在为 msbuild 创建构建脚本时执行 node.exe。
the binding.gyp from contextify包含:
'include_dirs': ["<!(node -e \"require('nan')\")"],
产生:
Das System kann den angegebenen Pfad nicht finden
( The System Cannot Find the Path Specified
)
即使知道 python 无法以某种方式调用 node.exe 并找到我们放弃的 require("nan") 模块。如果有人比我们有更多见解,请分享。为此我彻夜难眠 ;)
关于python - Windows 8 : `node-gyp rebuild` Exit status 1 installing contextify as dependency of zombie,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23865562/