-
Notifications
You must be signed in to change notification settings - Fork 4k
Open
Labels
Bugthing that needs fixingthing that needs fixingPriority 1high priority issuehigh priority issueRelease 9.xwork is associated with a specific npm 9 releasework is associated with a specific npm 9 release
Description
Is there an existing issue for this?
- I have searched the existing issues
This issue exists in the latest npm version
- I am using the latest npm
Current Behavior
Currently a lerna monorepo that is using npm < 9 workspaces under the hood running
npx lerna version patchwould resolve as expected w/ bumping the versions of the packages. However running the same sequence generates this below

Expected Behavior
Once the above commands are run it should continue with lerna's process of bumping the package version and pushing of git tags
Steps To Reproduce
- Clone this repo https://github.com/rxmarbles/lerna-lockfile-v3-bug-repro
- Run
npm install - Run
npx lerna version patch - It should generate the issue

Environment
- npm: 9.2.
- Node.js: 18.12.1
- OS Name:
- System Model Name: Macbook Pro
- npm config:
; "user" config from /Users/rmarkins/.npmrc
//registry.npmjs.org/:_authToken = (protected)
; "cli" config from command line options
location = "project"
; node bin location = /Users/rmarkins/Library/Application Support/fnm/node-versions/v18.12.1/installation/bin/node
; node version = v18.12.1
; npm local prefix = /Users/rmarkins/Projects/personal/lerna-lockfile-v3-bug-repro
; npm version = 9.2.0
; cwd = /Users/rmarkins/Projects/personal/lerna-lockfile-v3-bug-repro
; HOME = /Users/rmarkins
; Run `npm config ls -l` to show all defaults.bwhitty, Kylir and cylon324kagawagao, Kylir and cylon324
Metadata
Metadata
Assignees
Labels
Bugthing that needs fixingthing that needs fixingPriority 1high priority issuehigh priority issueRelease 9.xwork is associated with a specific npm 9 releasework is associated with a specific npm 9 release