-
Notifications
You must be signed in to change notification settings - Fork 50
Open
Description
When you get the info for a package, versions are returned sorted lexicographically, when they should be sorted according to semver. These two sorts are not the same, and the npm client assumes that it will be sorted according to the latter.
This results in the npm client installing the wrong version of a package. If a package has versions 0.0.1-0, 0.0.1-9, and 0.0.1-12, the public npm registry would give the following order:
0.0.1-0
0.0.1-9
0.0.1-12
whereas reggie gives this order:
0.0.1-0
0.0.1-12
0.0.1-9
causing the npm client to consider 0.0.1-9 to be the highest precedence, which it is not.
Reactions are currently unavailable