[BUG] file:
dependency is locked without package name when install is run for the 1st time
#6430
Closed
2 tasks done
Labels
Bug
thing that needs fixing
Needs Triage
needs review for next steps
Release 9.x
work is associated with a specific npm 9 release
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
Please run the repro steps below. Currently when a
file:
dependency is required, it is added to the lock file without a name when the npm install is run for the 1st time. Even if there is no dependency change, when the npm install is rerun, the lock file is changed.Expected Behavior
no lock file change
Steps To Reproduce
git clone https://github.com/atk4/ui.git
cd js
rm package-lock.json
npm i --package-lock-only
cp package-lock.json package-lock2.json
npm i --package-lock-only
packages
->.eslint
->name
key is added to the lock file (diff package-lock2.json package-lock.json
)Environment
The text was updated successfully, but these errors were encountered: