3

我正在尝试安装僵尸 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)

npm:1.3.21

蟒蛇:2.7 (32)

通往 Python 的方法是在 PATH (C:\Python27\python.exe;) PYTHONPATH : 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

我已经阅读了该主题的所有问题,但没有找到对我有帮助的决定。

我将非常感谢任何帮助!

4

6 回答 6

4

如果其他人提出这个问题:我们将其追踪(手动调试..)到某个节点绑定脚本,该脚本在为 msbuild 创建构建脚本时执行 node.exe。

contextify 中的 binding.gyp包含: '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”)模块。如果有人对我们有更多的见解,请分享。因为这个,我有不眠之夜;)

于 2014-06-05T07:23:57.497 回答
3

我有类似的问题,或者我什至会说完全一样!最后(在运行 node-gyp rebuild / npm install 时)我注意到一条错误消息,指出“MSBUILD:错误 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 install -> 一切正常!:D

希望有帮助!

干杯格雷格

于 2014-05-28T20:43:56.977 回答
0

我遇到了同样的问题,并尝试了一些在这里发布的解决方案(安装不同年份的各种 Microsoft VS 发行版),但无济于事。我最终让它工作了。除了这些步骤之外,它们的组合可能使它们为我工作,但这是我认为的解决方案:

  • 安装 Python 2.7。最简单的方法是使用 Chocolatey,所以你所要做的就是输入choco install python2
  • 安装适用于 Windows 桌面的 Visual Studio Express 2013。再次使用 Chocolatey,您只需键入choco install visualstudioexpress2013windowsdesktop将确保您下载正确的内容。

安装这些后,更新 Python 的环境变量。Chocolatey 会将其安装在C:\tools\python2. 最后,不要忘记关闭并重新打开命令提示符。

于 2015-03-11T01:58:21.633 回答
0

I recommend going for a machine that has *nix. Use someone's in your office if you don't have one. I don't remember how I did I resolve when I had this error while building strongloop and the kinds. However, most of the red messages being shown on consoles were warnings, not all were errors !! Ignore and only take errors to fix.

Working with MS dependencies + python + X-bit architecture + node-gyp rebuild permutations & combinations will reduce confidence levels more than they pay.

于 2015-04-02T06:19:58.130 回答
0

在此处下载 Visual Studio Express 2013:http: //www.microsoft.com/en-us/download/details.aspx?id=43729

于 2014-09-26T14:11:25.183 回答
0

这是一个老问题,但这些信息可能对某人有所帮助。

如果你只喜欢安装 microsoft visual C++ 2013 dist,你可以在这个链接下载微软提供的包:MS Visual C++ 2013 dist

此致!

于 2015-01-28T11:52:13.250 回答