我正在尝试为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
卢瓦克
答案 0 :(得分:1)
我只是通过将我的node.js版本从0.10.22升级到0.10.28来成功安装nodemon模块。
现在有效!!!