Skip to content
This repository was archived by the owner on Aug 11, 2021. It is now read-only.
This repository was archived by the owner on Aug 11, 2021. It is now read-only.

[FEATURE] Support lockfileV2 #26

@perrin4869

Description

@perrin4869

Using npm-merge-driver on a project with npm V7 workspaces, etc, ends up corrupting the lockfile.
I don't have a proper reproduction at hand at the moment, but the project I am working on will fail to run npm ci after merging with npm-merge-driver, failing with:

npm ERR! code E401
143 | npm ERR! Incorrect or missing password.
144 | npm ERR! If you were trying to login, change your password, create an
145 | npm ERR! authentication token or enable two-factor authentication then
146 | npm ERR! that means you likely typed your password in incorrectly.
147 | npm ERR! Please try again, or recover your password at:
148 | npm ERR!     https://www.npmjs.com/forgot
149 | npm ERR!
150 | npm ERR! If you were doing some other operation then your saved credentials are
151 | npm ERR! probably out of date. To correct this please try logging in again with:
152 | npm ERR!     npm login
153

I can confirm this is caused by npm-merge-driver because it is the only variable that I can change to fix the issue.
If it is helpful I can try to come up with a reproduction

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions