2013-10-25 38 views
1

我不知道問題可能是什麼。我先刪除了我的node_modules文件夾,然後試圖從頭開始進行npm安裝。npm安裝karma腳本啓動程序錯誤

當我嘗試執行乾淨的node_modules npm安裝時,我總是收到以下錯誤。我有時會通過業力腳本發射器得到這個錯誤,有時候我會用業力鉻發射器得到它。

有沒有人有任何想法它可能是什麼?

[email protected] 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!  <[email protected]> 

我的package.json有:

「卡瑪腳本啓動」: 「〜0.1.0」,
「報應 - 鉻 - 發射器」: 「〜0.1.0」,
「業報中的firefox-發射器」: 「〜0.1.0」,
「卡瑪html2js預處理程序」: 「〜0.1.0」,
「卡瑪 - 茉莉花」: 「〜0.1.3」,
「karma-requirejs」:「〜0.1.0」,
「karma-coffee-preprocessor」:「〜0.1.0」,
「卡瑪phantomjs-發射器」: 「〜0.1.0」,
「卡瑪的JUnit記者」: 「〜0.1.0」,
「報應覆蓋」: 「〜0.1.0」,

+0

你在什麼操作系統? – Anders

回答

0

更新npm可能會解決問題:

npm install npm -g