npm安装karma脚本启动器错误

时间:2013-10-25 19:22:43

标签: node.js npm karma-runner

我不知道问题是什么。我先删除了我的node_modules文件夹,然后尝试从头开始进行npm安装。

当我尝试执行node_modules的干净npm安装时,我一直收到以下错误。我有时会用karma-script-launcher得到这个错误,有时我会用karma-chrome-launcher得到它。

有没有人知道它可能是什么?

karma-script-launcher@0.1.0 node_modules/karma-script-launcher
npm ERR! Error: Callback called more than once.
npm ERR!     at errorHandler (/usr/local/Cellar/node/0.10.15/lib/node_modules/npm/lib/utils/error-handler.js:80:16)
npm ERR!     at save (/usr/local/Cellar/node/0.10.15/lib/node_modules/npm/lib/install.js:329:12)
npm ERR!     at /usr/local/Cellar/node/0.10.15/lib/node_modules/npm/lib/install.js:98:7
npm ERR!     at /usr/local/Cellar/node/0.10.15/lib/node_modules/npm/lib/install.js:188:5
npm ERR!     at /usr/local/Cellar/node/0.10.15/lib/node_modules/npm/node_modules/read-installed/read-installed.js:119:5
npm ERR!     at /usr/local/Cellar/node/0.10.15/lib/node_modules/npm/node_modules/read-installed/read-installed.js:233:14
npm ERR!     at cb (/usr/local/Cellar/node/0.10.15/lib/node_modules/npm/node_modules/slide/lib/async-map.js:48:11)
npm ERR!     at /usr/local/Cellar/node/0.10.15/lib/node_modules/npm/node_modules/read-installed/read-installed.js:233:14
npm ERR!     at cb (/usr/local/Cellar/node/0.10.15/lib/node_modules/npm/node_modules/slide/lib/async-map.js:48:11)
npm ERR!     at /usr/local/Cellar/node/0.10.15/lib/node_modules/npm/node_modules/read-installed/read-installed.js:233:14
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

我的package.json有:

“karma-script-launcher”:“~0.1.0”,
“karma-chrome-launcher”:“~0.1.0”,
“karma-firefox-launcher”:“~0.1.0”,
“karma-html2js-preprocessor”:“~0.1.0”,
“karma-jasmine”:“~0.1.3”,
“karma-requirejs”:“~0.1.0”,
“karma-coffee-preprocessor”:“~0.1.0”,
“karma-phantomjs-launcher”:“~0.1.0”,
“karma-junit-reporter”:“~0.1.0”,
“业力覆盖”:“~0.1.0”,

1 个答案:

答案 0 :(得分:0)

更新npm可能会解决问题:

npm install npm -g