安装npm模块时出现以下错误

时间:2015-06-22 18:14:27

标签: node.js npm js2coffee

运行npm install时出现以下错误。我不知道如何解决它。我使用的是npm版本2. *。

-
js2coffee@0.2.7 preinstall C:\workspace\cct-ui-mylocal\client\node_modules\gru
npm run-script ./cyclic.js

npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files (
npm ERR! node v0.12.4
npm ERR! npm  v2.10.1

npm ERR! missing script: ./cyclic.js
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     C:\workspace\cct-ui-mylocal\client\node_modules\grunt-ng-constant\n
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files (
npm ERR! node v0.12.4
npm ERR! npm  v2.10.1
npm ERR! code ELIFECYCLE

npm ERR! js2coffee@0.2.7 preinstall: `npm run-script ./cyclic.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the js2coffee@0.2.7 preinstall script 'npm run-script ./cycli
npm ERR! This is most likely a problem with the js2coffee package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     npm run-script ./cyclic.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls js2coffee
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\workspace\cct-ui-mylocal\client\npm-debug.log */

1 个答案:

答案 0 :(得分:0)

您需要使用npm v1或更新相关软件包。