Node.js 安装PhoneGap时出现问题-未找到兼容版本:JSONStream@'&燃气轮机=1.0.3<;2.0.0';

Node.js 安装PhoneGap时出现问题-未找到兼容版本:JSONStream@'&燃气轮机=1.0.3<;2.0.0';,node.js,npm,Node.js,Npm,当我尝试使用npm install-g PhoneGap或npm install-gf PhoneGap安装PhoneGap时,我收到以下错误消息: npm ERR! Darwin 14.1.0 npm ERR! argv "node" "/usr/local/bin/npm" "install" "-g" "phonegap" npm ERR! node v0.12.0 npm ERR! npm v2.9.0 npm ERR! code ETARGET npm ERR! notarget

当我尝试使用
npm install-g PhoneGap
npm install-gf PhoneGap
安装PhoneGap时,我收到以下错误消息:

npm ERR! Darwin 14.1.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "-g" "phonegap"
npm ERR! node v0.12.0
npm ERR! npm  v2.9.0
npm ERR! code ETARGET

npm ERR! notarget No compatible version found: JSONStream@'>=1.0.3 <2.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 ERR! notarget
npm ERR! notarget It was specified as a dependency of 'deps-sort'
npm ERR! notarget
npm错误!达尔文14.1.0
npm错误!argv“node”“/usr/local/bin/npm”“安装”“-g”“phonegap”
npm错误!节点v0.12.0
npm错误!npm v2.9.0
npm错误!代码

npm错误!notarget未找到兼容版本:JSONStream@'>=1.0.3由于配置不正确,这是一个临时问题,我相信很快就会解决


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

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


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

这对我来说很有效,谢谢

sudo npm install -g phonegap@4.0.0-0.22.7
科尔多瓦呢

sudo npm install -g cordova@4.1.2

这对我有用,谢谢

sudo npm install -g phonegap@4.0.0-0.22.7
科尔多瓦呢

sudo npm install -g cordova@4.1.2

该问题现已通过以下步骤解决:

您应该能够更新/安装


该问题现已通过以下步骤解决:


您应该能够更新/安装

如果使用cordova,可能会遇到相同的错误。回到4.1.2似乎是可行的<代码>sudo npm安装-gcordova@4.1.2
如果使用cordova,可能会遇到相同的错误。回到4.1.2似乎是可行的<代码>sudo npm安装-gcordova@4.1.2