4

运行此命令后:

sudo npm install -g cordova

我收到此错误:

npm ERR! notarget No compatible version found: JSONStream@'>=1.0.3-0 <2.0.0-0'
npm ERR! notarget Valid install targets:
npm ERR! notarget ["0.0.0","0.1.0","0.1.1","0.1.2","0.1.3","0.2.0","0.2.1","0.2.2","0.2.3","0.3.0","0.3.1","0.3.2","0.3.3","0.4.0","0.4.1","0.4.2","0.4.3","0.4.4","0.5.0","0.6.0","0.6.1","0.6.2","0.6.3","0.6.4","0.7.0","0.7.1","0.8.0","0.7.2","0.7.3","0.7.4","0.8.1","0.8.2","0.8.3","0.8.4","0.9.0","0.10.0"]
npm ERR! notarget 
npm ERR! notarget This is most likely not a problem with npm itself.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.

欢迎帮助。谢谢

4

1 回答 1

7

更新:问题已通过https://issues.apache.org/jira/browse/CB-8985修复

由于配置错误,这是一个临时问题,我相信很快就会解决。

同时,您可以使用第 4 版,sudo npm install -g cordova@4.0.0并在今天晚些时候修复它时进行更新。

于 2015-05-07T17:16:26.400 回答