【问题标题】:npm install karma script launcher errornpm install karma 脚本启动器错误
【发布时间】:2013-11-05 01:04:33
【问题描述】:

我不知道问题出在哪里。我首先删除了我的 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",
“业力茉莉花”:“〜0.1.3”,
"karma-requirejs": "~0.1.0",
“业力咖啡预处理器”:“~0.1.0”,
"karma-phantomjs-launcher": "~0.1.0",
"karma-junit-reporter": "~0.1.0",
“业力覆盖”:“~0.1.0”,

【问题讨论】:

    标签: node.js npm karma-runner


    【解决方案1】:

    更新 npm 可能会解决问题:

    npm install npm -g
    

    【讨论】:

      猜你喜欢
      • 2016-02-11
      • 2020-04-13
      • 2021-10-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-11-05
      • 2021-01-02
      • 2020-06-30
      相关资源
      最近更新 更多