安装cordova时出错

安装cordova时出错,cordova,npm,browserify,visual-studio-cordova,jsonstream,Cordova,Npm,Browserify,Visual Studio Cordova,Jsonstream,运行此命令后: 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

运行此命令后:

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.
我收到这个错误:

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.

npm错误!NotTarget未找到兼容版本:JSONStream@'>=1.0.3-0更新:问题已通过解决

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


同时,您可以通过
sudonpm安装-g使用版本4cordova@4.0.0
并在今天晚些时候进行更新,届时它将被修复。

我们在尝试安装时看到相同的错误cordova@4.3.0. 知道哪个库需要JSONStream来支持这些版本吗?我很快就找到了,但没有找到。如果今天下午还没有修好,我会查看并报告。我在尝试安装时也会遇到同样的错误cordova@4.2.0.Any由于@Victor提到的问题,依赖broswerify的Cordova版本将遇到此问题。旧版本不使用它,因此不受影响。4.1.2有效,但4.3.0无效。与broswerify和npm人员相关的类似线程也在进行中。问题已经解决。请再试一次。