安装科尔多瓦时出错
Posted
技术标签:
【中文标题】安装科尔多瓦时出错【英文标题】:Error installing cordova 【发布时间】:2015-07-18 09:42:05 【问题描述】:运行此命令后:
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.
欢迎提供帮助。 谢谢
【问题讨论】:
【参考方案1】:更新:问题已通过 https://issues.apache.org/jira/browse/CB-8985 修复
由于配置错误,这是一个临时问题,我相信很快就会解决。
与此同时,您可以通过sudo npm install -g cordova@4.0.0
使用第 4 版,并在今天晚些时候修复它时更新。
【讨论】:
我们在尝试安装 cordova@4.3.0 时遇到了同样的错误。知道哪个库需要带有这些版本的 JSONStream 吗? 我赶紧看了一下,没找到。如果今天下午还没有修好,我会查看并报告。 我在尝试安装 cordova@4.2.0 时遇到同样的错误。 由于@Victor 提到的问题,任何依赖于 broswerify 的 Cordova 版本都会遇到这个问题。旧版本不使用它,因此不受影响。 4.1.2 有效,但 4.3.0 无效。与 broswerify 相关的类似线程正在进行,npm 人员也参与其中。 问题已解决。请重试。以上是关于安装科尔多瓦时出错的主要内容,如果未能解决你的问题,请参考以下文章