【问题标题】:Unable to install nodemon on Windows for node.js无法在 Windows 上为 node.js 安装 nodemon
【发布时间】:2014-06-10 23:44:26
【问题描述】:

我正在尝试为 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

最好的 逻辑

【问题讨论】:

    标签: node.js npm nodemon


    【解决方案1】:

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

    现在可以了!!!

    【讨论】:

      猜你喜欢
      • 2017-03-06
      • 1970-01-01
      • 2018-07-31
      • 2019-04-15
      • 2017-08-27
      • 2020-01-27
      • 1970-01-01
      • 2021-08-29
      • 2013-08-01
      相关资源
      最近更新 更多