Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Versioning issue with 0.2.0-beta4 #332

Closed
bbroeksema opened this issue Mar 24, 2014 · 3 comments
Closed

Versioning issue with 0.2.0-beta4 #332

bbroeksema opened this issue Mar 24, 2014 · 3 comments
Labels

Comments

@bbroeksema
Copy link

I was trying to install eclipse orion, which has a dependency on node-inspector ~0.2.0-beta3. As a result it tried to install the latest beta: 0.2.0-beta4. This resulted in the following stack trace:

npm ERR! Error: invalid version: 0.2.0beta4
npm ERR! at validVersion (/usr/lib/nodejs/read-package-json/read-json.js:573:40)
npm ERR! at final (/usr/lib/nodejs/read-package-json/read-json.js:323:23)
npm ERR! at /usr/lib/nodejs/read-package-json/read-json.js:139:33
npm ERR! at cb (/usr/lib/nodejs/slide/lib/async-map.js:48:11)
npm ERR! at /usr/lib/nodejs/read-package-json/read-json.js:251:40
npm ERR! at fs.js:268:14
npm ERR! at /usr/lib/nodejs/graceful-fs/graceful-fs.js:103:5
npm ERR! at Object.oncomplete (fs.js:107:15)

I've been digging a bit and found an issue with the tar ball at http://registry.npmjs.org/node-inspector/-/node-inspector-0.2.0beta4.tgz:
The version property in the package.json in the tar says 0.2.0beta4.

To solve my issue I changed the version in pacakge.json to 0.2.0-beta4 (note the additional '-') and recreated package.tgz to make the install succeed.

@bajtos
Copy link
Member

bajtos commented Mar 24, 2014

Hi @bbroeksema, thank you for reporting the issue.

First of all, 0.2.0 betas are over a year old now and no longer supported. Please open an issue in eclipse orion to upgrade to a more recent version.

When I inspected data in the public registry, there are both "0.2.0-beta4" and "0.2.0beta4" versions, seems that "0.2.0beta4" is automatically redirected to "0.2.0-beta4".

I tried to install the Node Inspector myself and it worked well:

$ npm install node-inspector@0.2.0beta4
$ npm install node-inspector@0.2.0-beta4

What version is your npm client? Mine is 1.4.6.

$ npm -v
1.4.6

@bajtos bajtos added the Support label Mar 24, 2014
@bbroeksema
Copy link
Author

Hi @bajtos, thanks for the quick heads up. I looked up my npm version and it was at 1.2.18 on ubuntu (no more recent version provided). After upgrading it using npm install -g npm and removing the ubuntu provided one I didn't get this issue anymore. So it seemed to have been an npm issue.

After updating npm I was able to install orion with any manual fiddling or other problems. Closing the issue.

@kenwalker
Copy link

I've logged the bug at Orion to address the out of date module

https://bugs.eclipse.org/bugs/show_bug.cgi?id=432107

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants