How to fix timeout for packages on `npm install`?

后端 未结 6 1171
南旧
南旧 2021-01-17 19:20

When I run npm install it seems to work fine until part way installing packages. It seems to have no problem with the first half, but then after a while it will

6条回答
  •  执念已碎
    2021-01-17 19:53

    It might not be your case, but I had issues with a package being hosted at github with the repo url being only with git protocol (port 9418 not usually open on firewall).

    Once added that to the firewall I could npm install without issues.

    You can view the repository url with:

    $ npm view zone.js repository.url
    git://github.com/angular/angular.git
    

提交回复
热议问题