{"action":"created","issue":{"url":"https://api.github.com/repos/npm/npm/issues/8672","labels_url":"https://api.github.com/repos/npm/npm/issues/8672/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/8672/comments","events_url":"https://api.github.com/repos/npm/npm/issues/8672/events","html_url":"https://github.com/npm/npm/issues/8672","id":90990797,"number":8672,"title":"Installs Old Version by Default","user":{"login":"Annonomus-Penguin","id":7022869,"avatar_url":"https://avatars.githubusercontent.com/u/7022869?v=3","gravatar_id":"","url":"https://api.github.com/users/Annonomus-Penguin","html_url":"https://github.com/Annonomus-Penguin","followers_url":"https://api.github.com/users/Annonomus-Penguin/followers","following_url":"https://api.github.com/users/Annonomus-Penguin/following{/other_user}","gists_url":"https://api.github.com/users/Annonomus-Penguin/gists{/gist_id}","starred_url":"https://api.github.com/users/Annonomus-Penguin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Annonomus-Penguin/subscriptions","organizations_url":"https://api.github.com/users/Annonomus-Penguin/orgs","repos_url":"https://api.github.com/users/Annonomus-Penguin/repos","events_url":"https://api.github.com/users/Annonomus-Penguin/events{/privacy}","received_events_url":"https://api.github.com/users/Annonomus-Penguin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-25T15:07:39Z","updated_at":"2015-06-25T16:04:40Z","closed_at":null,"body":"I was installing the **[phonegap](https://www.npmjs.com/package/phonegap)** package. The latest version is 5.0.0-0.28.1, but, for some reason, NPM is installing 0.9.4. A big version difference...\r\n\r\nInstalling it as `npm install -g phonegap@5.0.0-0.28.1` works correctly, so it seems like it just has an issue choosing an issue.\r\n\r\nOutput:\r\n\r\n```bash\r\nroot@vagrant-ubuntu-trusty-64:/vagrant_data/app/inter# npm install phonegap -g\r\nnpm WARN engine ncallbacks@1.0.0: wanted: {\"node\":\"~0.6.7\"} (current: {\"node\":\"0.12.5\",\"npm\":\"2.11.3\"})\r\n\\\r\n> cordova@2.7.4 install /home/vagrant/.nvm/versions/node/v0.12.5/lib/node_modules/phonegap/node_modules/cordova\r\n> node bootstrap.js\r\n\r\nSUCCESS: Minimum requirements for blackberry met.\r\nBOOTSTRAPPING blackberry...\r\nWARNING: Your system does not meet requirements to create wp7 projects. See error output below.\r\n/bin/sh: 1: /home/vagrant/.nvm/versions/node/v0.12.5/lib/node_modules/phonegap/node_modules/cordova/lib/cordova-wp7/bin/\r\ncheck_reqs: not found\r\n\r\nSKIPPING wp7 bootstrap.\r\nERROR! Could not create a native blackberry project test fixture. See below for error output.\r\n/home/vagrant/.nvm/versions/node/v0.12.5/lib/node_modules/phonegap/node_modules/cordova/lib/cordova-blackberry/bin/create: 26: [: /home/vagrant/.nvm/versions/node/v0.12.5/lib/node_modules/phonegap/node_modules/cordova/spec/fixtures/projects/native/blackberry_fixture: unexpected operator/home/vagrant/.nvm/versions/node/v0.12.5/lib/node_modules/phonegap/node_modules/cordova/lib/cordova-blackberry/bin/create: 52: /home/vagrant/.nvm/versions/node/v0.12.5/lib/node_modules/phonegap/node_modules/cordova/lib/cordova-blackberry/bin/create: function: not found\r\nWARNING: Your system does not meet requirements to create android projects. See error output below.\r\nThe command `android` failed. Make sure you have the latest Android SDK installed, and the `android` command (inside the tools/ folder) added to your path. Output: /bin/sh: 1: android: not found\r\n\r\nSKIPPING android bootstrap.\r\nWARNING: Your system does not meet requirements to create ios projects. See error output below.\r\nXcode is (probably) not installed, specifically the command `xcodebuild` is unavailable or erroring out. Output of `xcodebuild -version` is: /bin/sh: 1: xcodebuild: not found\r\n\r\nSKIPPING ios bootstrap.\r\nWARNING: Your system does not meet requirements to create wp8 projects. See error output below.\r\n/bin/sh: 1: /home/vagrant/.nvm/versions/node/v0.12.5/lib/node_modules/phonegap/node_modules/cordova/lib/cordova-wp7/bin/check_reqs: not found\r\n\r\nSKIPPING wp8 bootstrap.\r\n/home/vagrant/.nvm/versions/node/v0.12.5/bin/phonegap -> /home/vagrant/.nvm/versions/node/v0.12.5/lib/node_modules/phonegap/bin/phonegap.js\r\nphonegap@0.9.4 /home/vagrant/.nvm/versions/node/v0.12.5/lib/node_modules/phonegap\r\n├── colors@0.6.2\r\n├── semver@1.1.0\r\n├── qrcode-terminal@0.9.5\r\n├── shelljs@0.0.9\r\n├── optimist@0.3.7 (wordwrap@0.0.3)\r\n├── node-static@0.6.9 (mime@1.3.4)\r\n├── prompt@0.2.14 (revalidator@0.1.8, pkginfo@0.3.0, read@1.0.6, winston@0.8.3, utile@0.2.1)\r\n├── phonegap-build@0.8.0 (qrcode-terminal@0.8.0, phonegap-build-api@0.3.3)\r\n└── cordova@2.7.4 (ncallbacks@1.0.0, open@0.0.3, shelljs@0.1.2, elementtree@0.1.3, xcode@0.5.1, request@2.11.4, prompt@0.2.7, plugman@0.5.6, express@3.0.6, ripple-emulator@0.9.29, plist@0.4.0)\r\n```"},"comment":{"url":"https://api.github.com/repos/npm/npm/issues/comments/115305000","html_url":"https://github.com/npm/npm/issues/8672#issuecomment-115305000","issue_url":"https://api.github.com/repos/npm/npm/issues/8672","id":115305000,"user":{"login":"KenanY","id":733364,"avatar_url":"https://avatars.githubusercontent.com/u/733364?v=3","gravatar_id":"","url":"https://api.github.com/users/KenanY","html_url":"https://github.com/KenanY","followers_url":"https://api.github.com/users/KenanY/followers","following_url":"https://api.github.com/users/KenanY/following{/other_user}","gists_url":"https://api.github.com/users/KenanY/gists{/gist_id}","starred_url":"https://api.github.com/users/KenanY/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KenanY/subscriptions","organizations_url":"https://api.github.com/users/KenanY/orgs","repos_url":"https://api.github.com/users/KenanY/repos","events_url":"https://api.github.com/users/KenanY/events{/privacy}","received_events_url":"https://api.github.com/users/KenanY/received_events","type":"User","site_admin":false},"created_at":"2015-06-25T16:04:40Z","updated_at":"2015-06-25T16:04:40Z","body":"@Annonomus-Penguin According to [SemVer](http://semver.org/), point 9:\r\n\r\n> A pre-release version MAY be denoted by appending a hyphen and a series of dot separated identifiers immediately following the patch version.\r\n\r\nSo, as far as `npm` can tell I believe, `5.0.0-0.28.1` is a pre-release version (which generally means it is not ready for widespread usage). Pre-release versions are no longer installed by `npm` as of `npm@2` unless you explicitly ask `npm` for one."}}