phonegap / phonegap-cli

PhoneGap and PhoneGap/Build command-line interface
Apache License 2.0
491 stars 156 forks source link

phonegap install fails on ubuntu 14.04 #336

Closed snipebin closed 10 years ago

snipebin commented 10 years ago

I get the following error while trying to install:

yovin@ubuntu:~/Dev/projects$ sudo npm install -g phonegap
npm http GET https://registry.npmjs.org/phonegap
npm http 304 https://registry.npmjs.org/phonegap
npm http GET https://registry.npmjs.org/phonegap/-/phonegap-3.5.0-0.20.1.tgz
npm http 200 https://registry.npmjs.org/phonegap/-/phonegap-3.5.0-0.20.1.tgz
npm http GET https://registry.npmjs.org/optimist
npm http GET https://registry.npmjs.org/connect-phonegap
npm http GET https://registry.npmjs.org/cordova-lib
npm http GET https://registry.npmjs.org/phonegap-build
npm http GET https://registry.npmjs.org/pluralize
npm http GET https://registry.npmjs.org/qrcode-terminal
npm http GET https://registry.npmjs.org/colors
npm http GET https://registry.npmjs.org/prompt
npm http GET https://registry.npmjs.org/semver
npm http GET https://registry.npmjs.org/shelljs
npm http GET https://registry.npmjs.org/cordova
npm http 304 https://registry.npmjs.org/phonegap-build
npm http 304 https://registry.npmjs.org/optimist
npm http 304 https://registry.npmjs.org/connect-phonegap
npm http 304 https://registry.npmjs.org/cordova-lib
npm http 304 https://registry.npmjs.org/qrcode-terminal
npm ERR! notarget No compatible version found: cordova-lib@'lorinbeer/cordova-lib.git#pg.3.5.0'
npm ERR! notarget Valid install targets:
npm ERR! notarget ["0.21.2","0.21.3"]
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! System Linux 3.13.0-27-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "-g" "phonegap"
npm ERR! cwd /home/yovin/Dev/projects
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.4.9
npm ERR! code ETARGET
npm http 304 https://registry.npmjs.org/colors
npm http 304 https://registry.npmjs.org/prompt
npm http 304 https://registry.npmjs.org/semver
npm http 304 https://registry.npmjs.org/pluralize
npm http 304 https://registry.npmjs.org/shelljs
npm http 304 https://registry.npmjs.org/cordova
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/yovin/Dev/projects/npm-debug.log
npm ERR! not ok code 0 

Environment info:

snipebin commented 10 years ago

Same happens with version 3.5.0-0.20.0 and 3.5.0-0.19.23.

I was able to install by following the first answer given here: http://stackoverflow.com/questions/24083982/phonegap-installation-error-npm?newreg=756e40381a794160a071990ff46a2bb7 but I ran into the following issue while trying to create a project https://github.com/phonegap/phonegap-cli/issues/335

Version 3.4.0-0.20.0 does a clean install and create also works.

lorinbeer commented 10 years ago

this should be resolved as of f9de3a7306c9601b9fea6c989edb5d62d88724ba

 $ npm update -g phonegap

if the issue persists, clear the npm cache

$ npm cache clean