R
Railway13mo ago
sambhav

problem with pnpm lock file

The project is a few months old. Everything was running smoothly. I added a new dependency in the project and now the build is failing. (works locally on my machine). imp thing to note is that I updated my node version on local machine, not sure if this causes the problem. The error I see on railway log is as following:
#10 1.191  ERR_PNPM_LOCKFILE_CONFIG_MISMATCH  Cannot proceed with the frozen installation. The current "settings.autoInstallPeers" configuration doesn't match the value found in the lockfile
#10 1.191
#10 1.191 Update your lockfile using "pnpm install --no-frozen-lockfile"
#10 ERROR: process "/bin/bash -ol pipefail -c pnpm i --frozen-lockfile" did not complete successfully: exit code: 1

-----
> [stage-0 6/10] RUN --mount=type=cache,id=s/1eae88cd-2df0-48a0-84a3-1fb671ba51e5-/root/local/share/pnpm/store/v3,target=/root/.local/share/pnpm/store/v3 pnpm i --frozen-lockfile:
#10 1.191  ERR_PNPM_LOCKFILE_CONFIG_MISMATCH  Cannot proceed with the frozen installation. The current "settings.autoInstallPeers" configuration doesn't match the value found in the lockfile
#10 1.191
#10 1.191 Update your lockfile using "pnpm install --no-frozen-lockfile"
-----

#10 1.191  ERR_PNPM_LOCKFILE_CONFIG_MISMATCH  Cannot proceed with the frozen installation. The current "settings.autoInstallPeers" configuration doesn't match the value found in the lockfile
#10 1.191
#10 1.191 Update your lockfile using "pnpm install --no-frozen-lockfile"
#10 ERROR: process "/bin/bash -ol pipefail -c pnpm i --frozen-lockfile" did not complete successfully: exit code: 1

-----
> [stage-0 6/10] RUN --mount=type=cache,id=s/1eae88cd-2df0-48a0-84a3-1fb671ba51e5-/root/local/share/pnpm/store/v3,target=/root/.local/share/pnpm/store/v3 pnpm i --frozen-lockfile:
#10 1.191  ERR_PNPM_LOCKFILE_CONFIG_MISMATCH  Cannot proceed with the frozen installation. The current "settings.autoInstallPeers" configuration doesn't match the value found in the lockfile
#10 1.191
#10 1.191 Update your lockfile using "pnpm install --no-frozen-lockfile"
-----

I have already tried running pnpm install --no-frozen-lockfile but that doesn't solve anything.
5 Replies
Percy
Percy13mo ago
Project ID: 1eae88cd-2df0-48a0-84a3-1fb671ba51e5
Brody
Brody13mo ago
delete the lock file before running that command
sambhav
sambhav13mo ago
i did try deleting the lockfile, adding it again, downgrading node to 18 and upgrading again. it is just stuck. I am now going to standard package-lock as I really need to push the changes right now. btw, when I delete pnpm lock and run the command with the no-frozen-lockfile flag, there are absolutely no changes. git shows nothing to commit
Brody
Brody13mo ago
imo pnpm is kinda pointless anyway, hopefully going back to npm will solve it
sambhav
sambhav13mo ago
pnpm is very helpful for me in local dev. I manually changed to autoInstallPeers: false in pnpm lock and that went through. (this is something new that is added to pnpm)