I always resolve those issues with yarn instead of npm and don't forget to increase the bandwidth in case the package is big