What's the difference between bun install --production
and bun install --frozen-lockfile
?
#17001
Unanswered
pierskarsenbarg
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
From reading https://bun.sh/docs/cli/install:
My interpretation is that:
bun install --production
will install packages unless it's indevDependencies
oroptionalDependencies
, however ifpackage.json
is different frombun.lock{b}
then it'll just update the lock file.bun install --frozen-lockfile
will compare the lock file with what's in package.json and if there's a difference then it exits with an error.However, I'm using
--production
and getting:error: lockfile had changes, but lockfile is frozen
Am I mis-interpreting the docs or are the docs wrong (or is there a bug)?
related #10949
Beta Was this translation helpful? Give feedback.
All reactions