当我尝试使用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
帮助将不胜感激。谢谢!
答案 0 :(得分:3)
由于配置错误,这是一个临时问题,我相信很快就会修复。
与此同时,您可以通过UserQueryExecutor
使用版本4,并在今天稍后更新,以便修复。
答案 1 :(得分:1)
这对我有用谢谢。
sudo npm install -g phonegap@4.0.0-0.22.7
和cordova
sudo npm install -g cordova@4.1.2
答案 2 :(得分:1)
此问题现已解决: https://github.com/dominictarr/JSONStream/issues/68
您应该能够更新/安装。