Invalid Version Error - problem with semver #3629

Closed
bminer opened this Issue Jul 6, 2013 · 2 comments

Comments

Projects
None yet
2 participants

bminer commented Jul 6, 2013

See isaacs/node-semver#37

Relevant part of npm-debug.log:

3426 silly gunzTarPerm extractEntry package.json
3427 verbose registry.get express not expired, no request
3428 silly addNameRange number 2 { name: 'express', range: '>=3.0.0-0 <3.1.0-0', hasData: true }
3429 silly addNameRange versions [ 'express',
3429 silly addNameRange   [ '0.14.0',
3429 silly addNameRange     '0.14.1',
3429 silly addNameRange     '1.0.0beta',
3429 silly addNameRange     '1.0.0beta2',
3429 silly addNameRange     '1.0.0rc',
3429 silly addNameRange     '1.0.0rc2',
3429 silly addNameRange     '1.0.0rc3',
3429 silly addNameRange     '1.0.0rc4',
3429 silly addNameRange     '1.0.0',
3429 silly addNameRange     '1.0.1',
3429 silly addNameRange     '1.0.2',
3429 silly addNameRange     '1.0.3',
3429 silly addNameRange     '1.0.4',
3429 silly addNameRange     '1.0.5',
3429 silly addNameRange     '1.0.6',
3429 silly addNameRange     '1.0.7',
3429 silly addNameRange     '2.0.0beta',
3429 silly addNameRange     '1.0.8',
3429 silly addNameRange     '2.0.0beta2',
3429 silly addNameRange     '2.0.0beta3',
3429 silly addNameRange     '2.0.0rc',
3429 silly addNameRange     '2.0.0rc2',
3429 silly addNameRange     '2.0.0rc3',
3429 silly addNameRange     '2.0.0',
3429 silly addNameRange     '2.1.0',
3429 silly addNameRange     '2.1.1',
3429 silly addNameRange     '2.2.0',
3429 silly addNameRange     '2.2.1',
3429 silly addNameRange     '2.2.2',
3429 silly addNameRange     '2.3.0',
3429 silly addNameRange     '2.3.1',
3429 silly addNameRange     '2.3.2',
3429 silly addNameRange     '2.3.3',
3429 silly addNameRange     '2.3.4',
3429 silly addNameRange     '2.3.5',
3429 silly addNameRange     '2.3.6',
3429 silly addNameRange     '2.3.7',
3429 silly addNameRange     '2.3.8',
3429 silly addNameRange     '2.3.9',
3429 silly addNameRange     '2.3.10',
3429 silly addNameRange     '2.3.11',
3429 silly addNameRange     '2.3.12',
3429 silly addNameRange     '2.4.0',
3429 silly addNameRange     '2.4.1',
3429 silly addNameRange     '2.4.2',
3429 silly addNameRange     '2.4.3',
3429 silly addNameRange     '2.4.4',
3429 silly addNameRange     '2.4.5',
3429 silly addNameRange     '2.4.6',
3429 silly addNameRange     '2.4.7',
3429 silly addNameRange     '2.5.0',
3429 silly addNameRange     '2.5.1',
3429 silly addNameRange     '2.5.2',
3429 silly addNameRange     '2.5.3',
3429 silly addNameRange     '2.5.4',
3429 silly addNameRange     '2.5.5',
3429 silly addNameRange     '2.5.6',
3429 silly addNameRange     '2.5.7',
3429 silly addNameRange     '2.5.8',
3429 silly addNameRange     '2.5.9',
3429 silly addNameRange     '3.0.0alpha1',
3429 silly addNameRange     '3.0.0alpha2',
3429 silly addNameRange     '3.0.0alpha3',
3429 silly addNameRange     '3.0.0alpha4',
3429 silly addNameRange     '3.0.0alpha5',
3429 silly addNameRange     '3.0.0beta1',
3429 silly addNameRange     '3.0.0beta2',
3429 silly addNameRange     '3.0.0beta3',
3429 silly addNameRange     '2.5.10',
3429 silly addNameRange     '3.0.0beta4',
3429 silly addNameRange     '2.5.11',
3429 silly addNameRange     '3.0.0beta6',
3429 silly addNameRange     '3.0.0beta7',
3429 silly addNameRange     '3.0.0rc1',
3429 silly addNameRange     '3.0.0rc2',
3429 silly addNameRange     '3.0.0rc3',
3429 silly addNameRange     '3.0.0rc4',
3429 silly addNameRange     '3.0.0rc5',
3429 silly addNameRange     '3.0.0',
3429 silly addNameRange     '3.0.1',
3429 silly addNameRange     '3.0.2',
3429 silly addNameRange     '3.0.3',
3429 silly addNameRange     '3.0.4',
3429 silly addNameRange     '3.0.5',
3429 silly addNameRange     '3.0.6',
3429 silly addNameRange     '3.1.0',
3429 silly addNameRange     '3.1.1',
3429 silly addNameRange     '3.1.2',
3429 silly addNameRange     '3.2.0',
3429 silly addNameRange     '3.2.1',
3429 silly addNameRange     '3.2.2',
3429 silly addNameRange     '3.2.3',
3429 silly addNameRange     '3.2.4',
3429 silly addNameRange     '3.2.5',
3429 silly addNameRange     '3.2.6',
3429 silly addNameRange     '3.3.0',
3429 silly addNameRange     '3.3.1',
3429 silly addNameRange     '3.3.2',
3429 silly addNameRange     '3.3.3' ] ]
3430 error TypeError: Invalid Version: 3.0.0alpha1
3430 error     at new SemVer (/usr/lib/node_modules/npm/node_modules/semver/semver.js:257:11)
3430 error     at SemVer.compare (/usr/lib/node_modules/npm/node_modules/semver/semver.js:296:13)
3430 error     at compare (/usr/lib/node_modules/npm/node_modules/semver/semver.js:410:31)
3430 error     at rcompare (/usr/lib/node_modules/npm/node_modules/semver/semver.js:420:10)
3430 error     at Array.sort (native)
3430 error     at Function.maxSatisfying (/usr/lib/node_modules/npm/node_modules/semver/semver.js:838:6)
3430 error     at next (/usr/lib/node_modules/npm/lib/cache.js:699:21)
3430 error     at /usr/lib/node_modules/npm/lib/cache.js:678:5
3430 error     at RegClient.get_ (/usr/lib/node_modules/npm/node_modules/npm-registry-client/lib/get.js:101:14)
3430 error     at RegClient.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-registry-client/lib/get.js:37:12)
3431 error If you need help, you may report this log at:
3431 error     <http://github.com/isaacs/npm/issues>
Member

timoxley commented Jan 12, 2014

@bminer looks like both styles are supported now – I was able to install both npm install express@3.0.0alpha1 and npm install express@3.0.0-alpha1, from the commandline and also via package.json. Are you still having this issue?

#4430

bminer commented Jan 14, 2014

I don't think so... Thanks!

@bminer bminer closed this Jan 14, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment