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

Error: invalid version "1.0" #13

Closed
staab opened this issue Jan 24, 2014 · 5 comments
Closed

Error: invalid version "1.0" #13

staab opened this issue Jan 24, 2014 · 5 comments

Comments

@staab
Copy link

staab commented Jan 24, 2014

When I do npm install easystarjs I get:

npm ERR! Error: Invalid version: "0.1"
npm ERR!     at Object.module.exports.fixVersionField (C:\Program Files\nodejs\node_modules\npm\node_modules\read-packag
e-json\node_modules\normalize-package-data\lib\fixer.js:178:13)
npm ERR!     at C:\Program Files\nodejs\node_modules\npm\node_modules\read-package-json\node_modules\normalize-package-d
ata\lib\normalize.js:29:38
npm ERR!     at Array.forEach (native)
npm ERR!     at normalize (C:\Program Files\nodejs\node_modules\npm\node_modules\read-package-json\node_modules\normaliz
e-package-data\lib\normalize.js:28:15)
npm ERR!     at final (C:\Program Files\nodejs\node_modules\npm\node_modules\read-package-json\read-json.js:310:33)
npm ERR!     at then (C:\Program Files\nodejs\node_modules\npm\node_modules\read-package-json\read-json.js:124:33)
npm ERR!     at C:\Program Files\nodejs\node_modules\npm\node_modules\read-package-json\read-json.js:299:40
npm ERR!     at fs.js:266:14
npm ERR!     at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\graceful-fs.js:103:5
npm ERR!     at Object.oncomplete (fs.js:107:15)
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js"
 "install" "easystarjs"
npm ERR! cwd C:\Users\jstaab\Dropbox\programming\node\tetroggle-desktop
npm ERR! node -v v0.10.21
npm ERR! npm -v 1.3.11
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     C:\Users\jstaab\Dropbox\programming\node\tetroggle-desktop\npm-debug.log
npm ERR! not ok code 0

I think the answer may be found here:
http://stackoverflow.com/a/16888025/1467342

This looks great, by the way!

@prettymuchbryce
Copy link
Owner

I cannot reproduce the issue on my Mac. The version property in the easystarjs package.json is properly formatted, and is compatible with semver.

Could you post the contents of this file C:\Users\jstaab\Dropbox\programming\node\tetroggle-desktop\npm-debug.log ?

I also recently published 0.1.6. Could you try again, and let me know if you're still seeing the same issue ?

@staab
Copy link
Author

staab commented Jan 27, 2014

Here's the contents of the file:

0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\\\node.exe',
1 verbose cli   'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'install',
1 verbose cli   'easystarjs' ]
2 info using npm@1.3.11
3 info using node@v0.10.21
4 verbose node symlink C:\Program Files\nodejs\\node.exe
5 error Error: Invalid version: "0.1"
5 error     at Object.module.exports.fixVersionField (C:\Program Files\nodejs\node_modules\npm\node_modules\read-package-json\node_modules\normalize-package-data\lib\fixer.js:178:13)
5 error     at C:\Program Files\nodejs\node_modules\npm\node_modules\read-package-json\node_modules\normalize-package-data\lib\normalize.js:29:38
5 error     at Array.forEach (native)
5 error     at normalize (C:\Program Files\nodejs\node_modules\npm\node_modules\read-package-json\node_modules\normalize-package-data\lib\normalize.js:28:15)
5 error     at final (C:\Program Files\nodejs\node_modules\npm\node_modules\read-package-json\read-json.js:310:33)
5 error     at then (C:\Program Files\nodejs\node_modules\npm\node_modules\read-package-json\read-json.js:124:33)
5 error     at C:\Program Files\nodejs\node_modules\npm\node_modules\read-package-json\read-json.js:299:40
5 error     at fs.js:266:14
5 error     at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\graceful-fs.js:103:5
5 error     at Object.oncomplete (fs.js:107:15)
6 error If you need help, you may report this log at:
6 error     <http://github.com/isaacs/npm/issues>
6 error or email it to:
6 error     <npm-@googlegroups.com>
7 error System Windows_NT 6.1.7601
8 error command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "easystarjs"
9 error cwd C:\Users\jstaab\Dropbox\programming\node\tetroggle-desktop
10 error node -v v0.10.21
11 error npm -v 1.3.11
12 verbose exit [ 1, true ]

I'm beginning to think this is a problem with my installation of npm though, since I get the same thing with other npm commands. If so, sorry about the irrelevant issue; I'm a pretty new noder and don't quite know what to do with their stack traces.

@prettymuchbryce
Copy link
Owner

What does the package.json look like for your project itself ?

@staab
Copy link
Author

staab commented Jan 27, 2014

facepalm. Yep, it was my project number that was throwing everything off. Thanks for the tip; might've taken me forever to track that down. You can close this issue. Burn it if you like.

Cheers and thanks for the cool package!

@prettymuchbryce
Copy link
Owner

No worries. I'm glad we found the problem.

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

No branches or pull requests

2 participants