Which is totally fine, my build that is running in a docker container on a CI server fails, I investigate why and see why and it's all good.
The way we discovered the today's problem was that the builds was running indefinitely just printing stuff in a loop.
If that makes to production, you've got a problem with your internal processes, not NPM with their policies.