我正在尝试为 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.0
或semver@2.2.1
(随机)的错误。您能否告诉我如何成功安装 nodemon ?我在 Windows 7 64 位下使用 node.js v.0.10.22, npm 1.2.14
最佳逻辑