0

我正在尝试为 node.js 安装最新版本的 nodemon 模块,但是当我这样做时,npm install nodemon -g出现以下错误:

npm ERR! Error: No compatible version found: chalk@'^0.4.0'
npm ERR! Valid install targets:
npm ERR! ["0.1.0","0.1.1","0.2.0","0.2.1","0.3.0","0.4.0"]
npm ERR! at installTargetsError (C:\Program Files (x86)\nodejs\node_modules\npm\lib\cache.js:682:10)
npm ERR! at C:\Program Files (x86)\nodejs\node_modules\npm\lib\cache.js:597:10
npm ERR! at saved (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\get.js:138:7)
npm ERR! at Object.oncomplete (fs.js:107:15)
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

有时它是chalk@'^0.4.0'configstore@^0.3.0semver@2.2.1(随机)的错误。您能否告诉我如何成功安装 nodemon ?我在 Windows 7 64 位下使用 node.js v.0.10.22, npm 1.2.14

最佳逻辑

4

1 回答 1

1

我只需将我的 node.js 版本从 0.10.22 升级到 0.10.28 即可成功安装 nodemon 模块。

现在它起作用了!

于 2014-06-10T15:44:26.273 回答