当我尝试使用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如果能帮上忙,我们将不胜感激。谢谢!!
发布于 2015-05-08 01:18:46
这是一个暂时的问题,由于一个糟糕的配置,这将很快被修复,我相信。
同时,你可以通过sudo npm install -g phonegap@4.0.0-0.22.7使用版本4,并在今天晚些时候更新,当它被修复的时候。
发布于 2015-05-08 03:29:20
这对我很有效,谢谢。
sudo npm install -g phonegap@4.0.0-0.22.7对于科尔多瓦来说
sudo npm install -g cordova@4.1.2发布于 2015-05-08 04:14:08
该问题现已通过以下方式得到解决:https://github.com/dominictarr/JSONStream/issues/68
您应该能够更新/安装。
https://stackoverflow.com/questions/30107556
复制相似问题