Skip to content

[BUG] npm 9 does not handle workspace versioning done outside of npm version #5967

@rxmarbles

Description

@rxmarbles

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 patch

would resolve as expected w/ bumping the versions of the packages. However running the same sequence generates this below
Screen Shot 2022-12-14 at 12 36 00 PM

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

  1. Clone this repo https://github.com/rxmarbles/lerna-lockfile-v3-bug-repro
  2. Run npm install
  3. Run npx lerna version patch
  4. It should generate the issue
    Screen Shot 2022-12-14 at 12 36 00 PM

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixingPriority 1high priority issueRelease 9.xwork is associated with a specific npm 9 release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions