In my app, I have users install dependencies by running npm install
-- bog standard behaviour.
However, I have one package that changes frequently, and in an effort to not end up with a ridiculously large version number like 0.1.12324
, I stumbled upon the concept of pre-releases.
How does npm treat prerelease numbers when running npm install
?
Assuming my package packageA
has a version number of 0.1.1-r1234
, and my users have a dependency semver of ~0.1.1
:
I know that a new user without packageA
installed will automatically have that version (0.1.1-r1234
) installed.
What if someone already has packageA
installed, of version 0.1.1-r1233
? Does npm install
know to install the newer pre-release?