Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
- run
npm version for workspaces with -w <workspace> args
- see only changed
package.json but not change lockfile
Expected Behavior
run npm version -w <workspace> need adjust new version of workspace package in package-lock.json
As it said in npm cli docs:
Run this(npm version) in a package directory to bump the version and write the new data back to package.json, package-lock.json, and, if present, npm-shrinkwrap.json.

Steps To Reproduce
- run
npm version for workspaces with -w <workspace> args
- see only changed
package.json but not change lockfile
- for verify whether lockfile need update, I have run
npm install
- yes,
lockfile changed


Environment
- npm: 8.3.0
- Node: 16.8.0
- OS: macOS 11.15
- platform: Mac
- npm config:
audit = false
fund = false
if-present = true
ignore-scripts = false
yes = true
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
npm versionfor workspaces with-w <workspace>argspackage.jsonbut not change lockfileExpected Behavior
run
npm version -w <workspace>need adjust new version of workspace package inpackage-lock.jsonAs it said in npm cli docs:
Steps To Reproduce
npm versionfor workspaces with-w <workspace>argspackage.jsonbut not change lockfilenpm installlockfilechangedEnvironment