error Your lockfile needs to be updated, but yarn was run with `--frozen-lockfile`.
if you update your package.json only.
and then
run yarn install --frozen-lockfile
The above error show you on console.
it's say that you need to run just yarn install
.
--fronzen-lockfile
option is tell you need to update your lock.file which will be much dependency of package in your package.json.
It's possible to occure in server when you deploy.
if there are your changed package.json that pushing to git repogitory already in server
, But you forget to change yarn.lockfile and have not been git it,
run above command (--forzen-lockfile
).
you notice that your forgot it.
in order to get my project going again I had to use yarn 1
I installed corepack (suggested from the [deprecated] yarn version manager)
made sure I had entries in my package.json (and deleted a .yarnrc file asking for yarn 3)
Then activated the yarn I wanted
corepack prepare [email protected] --activate
and then everything worked again