我不知道问题可能是什么。我首先删除了我的 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-预处理器”:“~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”,
“karma-coverage”:“~0.1.0”,