npm publish and npm pack were both stuck for me. On the prepack step it would run indefinitely maxing out the CPU.
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.
For me it was the registry that had issues. Make sure that everything is green at https://status.npmjs.org/!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With