minoblue
minoblue

Reputation: 33

What is default package version installing by npm

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

Answers (1)

Pac0
Pac0

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

Related Questions