运行此命令后:
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.
欢迎提供帮助。
谢谢
最佳答案
更新:问题已通过 https://issues.apache.org/jira/browse/CB-8985 修复
由于配置不当,这是一个临时问题,我相信很快就会修复。
同时,您可以通过 sudo npm install -g cordova@4.0.0
使用第 4 版,并在今天晚些时候修复时更新。
关于cordova - 安装cordova时出错,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/30107474/