3 months ago
I keep getting this error: npm error npm ci can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with npm install before continuing.
I run it locally, it works fine. I removed my node_modules, regenerated my lock file, but no luck. Even tried running it with NO_CACHE=1 and RAILPACK_INSTALL_CMD="npm ci --include=dev", no luck either.
Any clue?
4 Replies
3 months ago
can you try to delete your package-lock.json + node_modules + reinstall and push the new package-lock?
3 months ago
It worked, thanks!
2 months ago
I tried but still failed(it also failed on my local computer), I finally switched to pnpm for building and it works well..
fra
can you try to delete your package-lock.json + node_modules + reinstall and push the new package-lock?
2 months ago
I have tried this, but with no result. In the end I switched to bun which ironically seems like a really stable solution, at least for my use case. So I think I will stick with that for now!