安装grunt-phonegap - 错误:找不到兼容的版本:URIjs@'^1.12.0'

时间:2014-03-08 13:56:30

标签: cordova dependencies gruntjs npm

我正在尝试安装grunt-phonegap

  

npm install grunt-phonegap

得到了这个错误

npm http 304 https://registry.npmjs.org/URIjs
npm ERR! Error: No compatible version found: URIjs@'^1.12.0'
npm ERR! Valid install targets:
npm ERR! ["1.4.2","1.6.3","1.7.0","1.7.1","1.7.2","1.7.3","1.7.4","1.8.0","1.8.1","1.8.2","1.8.3","1.9.0","1.9.1","1.10.0","1.10.1","1.10.2","1.11.0","1.11.1","1.11.2","1.12.0"]

我已回答了我的问题,但这只是一个暂时的解决方案,无法解释真正的问题。

1 个答案:

答案 0 :(得分:0)

评论中提及的Alex,正确的答案是更新npm版本,该版本在描述版本时支持'^'