Building a project on macOS 14 (including one npm install
) is failing randomly.
Other team members have no issues on Windows or Mac so I have to assume it’s my system config causing the trouble.
Random meaning that some day it will fail repeatedly (dozens of time during hours), some other day it will build like a charm at first try in 2 min.
Most of the time it will get stuck on a random package during npm install
, or ends up failing with these errors:
[INFO] npm ERR! code ECONNRESET
[INFO] npm ERR! network aborted
[INFO] npm ERR! network This is a problem related to network connectivity.
[INFO] npm ERR! network In most cases you are behind a proxy or have bad network settings.
I do not have any specific network configuration compared to others (none that I configured explicitely anyway). But I do have nvm with two different node versions to build another project. I am also using iTerm2.
Our versions (npm, node and packages) are not up to date, but as it works fine for others it looks like it’s not the cause of it.
What could be happening in the guts of macOS to make npm fail like that?