-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] incomplete lock file is generated for workspaces on first install #2700
Labels
Bug
thing that needs fixing
Priority 2
secondary priority issue
Release 7.x
work is associated with a specific npm 7 release
Milestone
Comments
FWIW I can still reproduce with v7.6.3 |
@targos can you try replicating on latest again? (ie. |
Seems fixed! |
I still have the same problem, I'm on npm 7.20.2 |
I have the same problem on npm 8.10.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Bug
thing that needs fixing
Priority 2
secondary priority issue
Release 7.x
work is associated with a specific npm 7 release
Current Behavior:
After installing the dependencies in an npm workspace for the first time, running npm install a second time changes the package-lock.json: a "name" field is added to the sub-packages metadata.
Expected Behavior:
Running
npm install
right after creation of the package-lock.json shouldn't change it.Steps To Reproduce:
You can reproduce with the following repo: the last commit contains the package-lock.json created by the first
npm install
call.Environment:
The text was updated successfully, but these errors were encountered: