【问题标题】:Windows 8 : `node-gyp rebuild` Exit status 1 installing contextify as dependency of zombieWindows 8:`node-gyp rebuild`退出状态1安装contextify作为僵尸的依赖
【发布时间】:2014-07-14 22:59:34
【问题描述】:

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

Python: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

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

非常感谢任何帮助!

【问题讨论】:

    标签: python node.js zombie.js node-gyp contextify


    【解决方案1】:

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

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

    最好的问候!

    【讨论】:

      【解决方案2】:

      我建议购买具有 *nix 的机器。如果您没有,请在您的办公室使用某人。我不记得在构建 strongloop 和各种类型时遇到此错误时我是如何解决的。但是,控制台上显示的大多数红色消息都是警告,并非所有错误!忽略并仅修复错误。

      使用 MS 依赖项 + python + X-bit 架构 + node-gyp 重建排列和组合将降低置信度,而不是付出代价。

      【讨论】:

        【解决方案3】:

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

        • 安装 Python 2.7。最简单的方法是使用 Chocolatey,所以您只需输入 choco install python2
        • 为 Windows 桌面安装 Visual Studio Express 2013。再次使用 Chocolatey,您只需输入 choco install visualstudioexpress2013windowsdesktop,这将确保您下载正确的。

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

        【讨论】:

          【解决方案4】:

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

          【讨论】:

            【解决方案5】:

            如果其他人提出这个问题:我们将其追踪(手动调试..)到某个节点绑定脚本,该脚本在为 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”)模块。如果有人对我们有更多的见解,请分享。因为这个,我彻夜难眠;)

            【讨论】:

              【解决方案6】:

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

              Google 给了我这个答案 = 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

              希望有帮助!

              干杯 格雷格

              【讨论】:

              • 谢谢你的回答,我已经尝试过所有版本的VS,我想... :) 最后我换了Windows 7,现在一切正常
              • 所以答案是安装一个 9gb IDE 来吸收所有的 cpu 周期和可用内存?太棒了……太棒了。
              猜你喜欢
              • 1970-01-01
              • 2014-11-29
              • 2023-04-09
              • 2012-08-12
              • 2020-03-19
              • 1970-01-01
              • 1970-01-01
              • 2020-07-14
              • 2018-12-16
              相关资源
              最近更新 更多