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:
I have already tried running
pnpm install --no-frozen-lockfile
but that doesn't solve anything.5 Replies
Project ID:
1eae88cd-2df0-48a0-84a3-1fb671ba51e5
delete the lock file before running that command
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 commitimo pnpm is kinda pointless anyway, hopefully going back to npm will solve it
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)