What package version does @next specify for npm?

Dan Dascalescu picture Dan Dascalescu · Nov 16, 2016 · Viewed 18.4k times · Source

What version of package foo will this command install?

npm install foo@next

The package.json and semver docs don't mention next.

Answer

Diego Ferri picture Diego Ferri · Nov 16, 2016

npm install installs a package.

A package is:

...
d) a <name>@<version> that is published on the registry (see npm-registry) with (c)
e) a <name>@<tag> (see npm-dist-tag) that points to (d)
...

Source

That is to say that next is a version or tag published in your reference npm registry.