Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NPM hangs and gets stuck on publish/pack

Tags:

npm

npm publish and npm pack were both stuck for me. On the prepack step it would run indefinitely maxing out the CPU.

like image 553
kagronick Avatar asked Sep 07 '25 17:09

kagronick


2 Answers

I got the same issue. The reason was that I had larges files of data (decades of Go) making packaging so slow that it looked to be stucked.

like image 172
Alexandre Annic Avatar answered Sep 11 '25 14:09

Alexandre Annic


For me it was the registry that had issues. Make sure that everything is green at https://status.npmjs.org/!

like image 30
Nino Filiu Avatar answered Sep 11 '25 13:09

Nino Filiu