ERROR: failed to solve: process "/bin/bash -ol pipefail -c pnpm i --frozen-lockfile" did not complet
My servers has started failing their builds lately and I haven't been able to figure out why yet.
Building locally works perfectly fine. I tried to also a
pnpm store prune
into my build command without any success.
I am using Nixpacks.16 Replies
Project ID:
3ba1c704-e8b3-4cf3-9314-29c91a5957c0
3ba1c704-e8b3-4cf3-9314-29c91a5957c0
The logs are spammed with the following for both of my failing services:
It worked fine before and I can't recall anything that I've changed that could have affected this.
Solution
try setting
engines.node
to 18
in your package.jsonSame issue unfortunately
show me the build table at the top of the build logs please
its still using node 20, can you show me how you set
engines.node
also im not sure why you need to do rm -rf
on the node_modules folder, that folder should never make it into your repo in the first placeyea that was just me playing and debugging
ah I had ^18, now I received 18
new build in progress
^
Is there some issue with Nixpacks and node 20?
worked btw when I set it to 18, thanks.
I get this often too
no, just pnpm probably isn't compatible with node 20
and if you do something like ">=16.0.0" well node 20 is greater than 16 so nixpacks using node 20 is normal, so you should always be pinning your project to a spoecfic version of node
gotcha, makes sense
time to start considering bun perhaps
i will say if you decide to use bun, you have to fully commit, no mixing bun and pnpm, etc
yea, would be a bigger project to convert my monorepo to that.
anyways, makred this as solved. Thanks for the quick assistance
no problem 🙂