【问题标题】:NPM errors when running mrt add kadira运行 mrt add kadira 时出现 NPM 错误
【发布时间】:2014-08-16 14:35:52
【问题描述】:

尝试运行 mrt add kadira 时出现此错误。我可以添加其他软件包,例如 Iron-router 或 collectionFS,但不确定是什么导致了问题。我曾尝试更新我的 npm 版本,但这似乎并没有起到多大作用。有人有什么想法吗?

kadira: updating npm dependencies -- debug, usage...
npm http GET https://registry.npmjs.org/usage
npm http 304 https://registry.npmjs.org/usage
npm http GET https://registry.npmjs.org/bindings
npm http 304 https://registry.npmjs.org/bindings
Usage: gyp_main.py [options ...] [build_file ...]

gyp_main.py: error: no such option: --no-parallel
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onCpExit     (/home/theostyles/.meteor/tools/858c88b520/lib/node_modules/npm/node_modules/node-    gyp/lib/configure.js:340:16)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:807:12)
gyp ERR! System Linux 3.13.0-29-generic
gyp ERR! command "node"     "/home/theostyles/.meteor/tools/858c88b520/lib/node_modules/npm/node_modules/node-    gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd     /home/theostyles/.meteorite/packages/kadira/meteorhacks/kadira/6073fa5bdfb36478165977804f92    2796b6fc82de/.npm/package-new-1dwhr1e/node_modules/usage
gyp ERR! node -v v0.10.28
gyp ERR! node-gyp -v v0.13.0
gyp ERR! not ok 
npm ERR! usage@0.4.3 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the usage@0.4.3 install script.
npm ERR! This is most likely a problem with the usage 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 usage
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 3.13.0-29-generic
npm ERR! command "/home/theostyles/.meteor/tools/858c88b520/bin/node"     "/home/theostyles/.meteor/tools/858c88b520/bin/npm" "install" "usage@0.4.3"
npm ERR! cwd     /home/theostyles/.meteorite/packages/kadira/meteorhacks/kadira/6073fa5bdfb36478165977804f92    2796b6fc82de/.npm/package-new-1dwhr1e
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.4.9
npm ERR! code ELIFECYCLE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!         /home/theostyles/.meteorite/packages/kadira/meteorhacks/kadira/6073fa5bdfb36478165977804f92    2796b6fc82de/.npm/package-new-1dwhr1e/npm-debug.log
npm ERR! not ok code 0

=> Errors while scanning packages:

While building package `kadira`:
error: couldn't install npm package

    /usr/local/lib/node_modules/meteorite/lib/command.js:41
        throw "Command exited with " + code + "/" + signal;
                                                  ^
    Command exited with 1/null

【问题讨论】:

    标签: javascript jquery node.js meteor


    【解决方案1】:

    我认为这是 Kadira 的二进制 npm 依赖的问题,并已在以下问题中报告:

    https://github.com/meteor/meteor/issues/2249

    应该很快就会修复。

    【讨论】:

      猜你喜欢
      • 2021-04-10
      • 2020-02-20
      • 1970-01-01
      • 1970-01-01
      • 2022-08-08
      • 2022-01-12
      • 2020-06-15
      • 2020-04-22
      • 2021-03-03
      相关资源
      最近更新 更多