Build timeout at npm install?
Hey folks, I have a worker build that keeps timing out at the
npm install
step, does it really make sense that this take 20 mins? Is there anything I can do to debug?
2 Replies
I assume that if you build locally it doesn't timeout at
npm install
? Also, are you checking in your package-lock.json
? If not, what happens if you delete that file locally (back up first) then npm install
?The limits for builds are probably an issue for JS/TS projects of any reasonable size
https://developers.cloudflare.com/workers/ci-cd/builds/limits-and-pricing/#limits
you might try building on GHA to see how long it takes, private repos have about the same specs, public repos get about 2x the specs
https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
for an extra datapoint, I have an 8cpu Jenkins worker that takes about 7m run the yarn equivalent for a moderate size react frontend