Should pnpm i --force
recreate the lock file?
#9056
Unanswered
jimmythomson
asked this question in
Q&A
Replies: 1 comment 9 replies
-
Try |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using a
.pnpmfile.cjs
file to switch out some dependencies based on an environment variable. When I change the environment variable, I want to be able to recreate the lock file with references to the updated dependencies (as controlled by the.pnpmfile.cjs
file). I thought thatpnpm i --force
would do the job, but the--force
flag doesn't appear to force anything to happen using pnpm 10.0.0. Is there another way to force the recreation of the lock file, short of deleting thenode_modules
folder or altering apackage.json
file?Thanks.
Beta Was this translation helpful? Give feedback.
All reactions