【发布时间】:2015-07-25 03:03:09
【问题描述】:
我试图向我的 Meteor 应用程序添加一个包 (mizzao:turkserver),但我一直收到此错误:
mizzao:turkserver: updating npm dependencies -- request, libxmljs,
validator, querystring, async, deepmerge...
gypnpm ERR! Windows_NT 6.1.7601
npm ERR! argv
"C:\\Users\\PC4all\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.1.3\\mt-os
.windows.x86_32\\dev_bundle\\bin\\\\node.exe"
"C:\\Users\\PC4all\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.1.3\\mt-os
.windows.x86_32\\dev_bundle\\bin\\node_modules\\npm\\bin\\npm-cli.js"
"install" "libxmljs@0.8.1"
npm ERR! node v0.10.36
npm ERR! npm v2.7.3
npm ERR! code ELIFECYCLE
npm ERR! libxmljs@0.8.1 install: `node-gyp rebuild`
npm ERR! Exit status 7
npm ERR!
npm ERR! Failed at the libxmljs@0.8.1 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the libxmljs package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls libxmljs
npm ERR! There is likely additional logging output above.
=> Babel active on file extensions: es6.js, es6, jsx
=> Errors while adding packages:
While building package mizzao:turkserver:
error: couldn't install npm package
我正在 Windows 7 机器上开发我的 Meteor 应用程序,根据我从论坛上的帖子中收集到的信息,错误似乎与该事实有关(npm 和 Windows 之间的交互 - 我没有找到任何帖子在 Linux 机器上描述相同的问题)。
我已经尝试按照此处的建议安装最新的 Python 版本和 MS Visual Studio 2013:https://github.com/TooTallNate/node-gyp#installation,并按照此处的建议设置一些环境变量:https://github.com/atom/atom/issues/2754。但这些都没有帮助。
任何帮助将不胜感激!
【问题讨论】:
标签: node.js windows meteor npm node-gyp