You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
npm has version information is stored not only in package.json, but also in package-lock.json and npm-shrinkwrap.json. Therefore, when updating a package's version, these files must also be updated.
Describe the feature
npm
has version information is stored not only inpackage.json
, but also inpackage-lock.json
andnpm-shrinkwrap.json
. Therefore, when updating a package's version, these files must also be updated.Here is an example implementation of the
npm version
command.https://github.com/npm/cli/blob/60faa9052a74d7a6ac8db59dae2d7017542310d7/workspaces/libnpmversion/lib/version.js#L79-L94
Additional information
The text was updated successfully, but these errors were encountered: