It seems that npm cannot handle the internet connection and can sometimes end in such a situation.
1) . I advise you to check if your firewall or antivirus, scanning or filtering is working, which may slow down the installation of npm.
2) You can also use npm caching as shown below.
npm install package-name
this will allow the use of npm and cache dependencies in the directory you specify.
3) another solution for caching dependencies of npm npm lazy packages, you can find more information about this on the npm Lazy website
Note. The caching process may or may not increase download speed, but it will probably save loading time when installing or updating npm packages.
Williem Apr 18 '15 at 17:15 2015-04-18 17:15
source share