You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
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)
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.
The text was updated successfully, but these errors were encountered:
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:
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.
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.
The text was updated successfully, but these errors were encountered: