Switching to pnpm because npm install was taking too long
I ended up wasting an entire day because of this issue, https://github.com/nodejs/docker-node/issues/1946#issuecomment-2418786279 There was an issue where npm i
I ended up wasting an entire day because of this issue,
https://github.com/nodejs/docker-node/issues/1946#issuecomment-2418786279
There was an issue where npm install -g in the Dockerfile was taking an extremely long time. It had been working fine, then suddenly stopped; when I looked into why, I found it explained in the GitHub thread above.
It seems like this is hard to fix when using an Alpine image.
I tried various approaches, but they all failed, and in the end I switched to pnpm.
https://github.com/pnpm/pnpm/issues/4495#issuecomment-1518584959