[BUG] npm ci
requires yarn.lock
to be writeable if it is present, even though it should not write to any lock files
#5317
Labels
Bug
thing that needs fixing
Needs Triage
needs review for next steps
Release 8.x
work is associated with a specific npm 8 release
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
When I run
npm ci
and ayarn.lock
file is present and is read-only, it fails due to requesting write permission it does not need:Expected Behavior
Running
npm ci
should not request write access when openingyarn.lock
, since it is only reading the file.Steps To Reproduce
yarn.lock
file present and marked as read-onlynpm ci
npm ERR! Error: EPERM: operation not permitted, open '<path>\yarn.lock'
Environment
The text was updated successfully, but these errors were encountered: