无法安装PhoneGap – 找不到兼容版本:JSONStream @'> = 1.0.3 <2.0.0

当我尝试使用npm install -g phonegapnpm 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 

帮助将不胜感激。 谢谢!!

这是一个暂时的问题,由于configuration不好,我相信很快就会被修复。

同时,您可以通过sudo npm install -g phonegap@4.0.0-0.22.7使用版本4,并在今天sudo npm install -g phonegap@4.0.0-0.22.7进行更新。

这对我工作谢谢。

 sudo npm install -g phonegap@4.0.0-0.22.7 

和cordova

 sudo npm install -g cordova@4.1.2 

现在按照以下url解决问题: https : //github.com/dominictarr/JSONStream/issues/68

你应该可以更新/安装。