Reputation: 33
when I install a new package in node js project with npm, without specifying a exact version, what is the package version going to install by default?
Upvotes: 1
Views: 124
Reputation: 23174
It would be the "latest" as indicated by the package information.
Source : https://docs.npmjs.com/cli/install
That is usually set as the latest stable release version, usually not the beta version and other unstable releases. But again, it all depends on each package, this is just some configuration information to be set by the maintainer(s) of the package.
Upvotes: 1