【问题标题】:'gyp' filed with exit code: 1 when trying to install zookeeper on window using npm'gyp' 失败,退出代码:1 尝试使用 npm 在 Windows 上安装 Zookeeper 时
【发布时间】:2013-08-31 23:58:54
【问题描述】:

我正在尝试使用 npm 1.3.9 在 Windows 7 上安装 Zookeeper 3.4.5。当我进入

npm 安装动物园管理员

我明白了

File "C:\Program Files\npm-1.3.9\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\MSVSProject.py", line 181, in AddFileConfig
raise ValueError('AddFileConfig: file "%s" not in project.' % path)
ValueError: AddFileConfig: file "." not in project.
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (C:\Program Files\npm-1.3.9\node_modules\npm\node_modules\node-gyp\lib\configure.js:424:16)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\\Program Files\\npm-1.3.9\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Program Files\Zookeeper-3.4.5\node_modules\zookeeper
gyp ERR! node -v v0.10.17
gyp ERR! node-gyp -v v0.10.9
gyp ERR! not ok 
npm ERR! weird error 1
npm ERR! not ok code 0

【问题讨论】:

  • 同样的问题,但接受的解决方案对我没有帮助

标签: node.js windows-7 npm apache-zookeeper


【解决方案1】:

由于这是一个巨大而烦人的问题,我已经用许多不同的(非永久性方式)解决了,我终于在这里找到了答案:

Error installing node-gyp on ubuntu

由于您使用的是 Windows,因此请尝试在 Windows 上使用以前版本的 Python(对我来说使用的是 2.6)。

【讨论】:

    【解决方案2】:

    试试这个node-gyp installation。它对我有用。

    够了:

    npm install --global --production windows-build-tools
    

    【讨论】:

      猜你喜欢
      • 2018-08-27
      • 1970-01-01
      • 2014-10-20
      • 1970-01-01
      • 1970-01-01
      • 2018-04-27
      • 2020-10-10
      • 1970-01-01
      • 2016-04-18
      相关资源
      最近更新 更多