相关疑难解决方法(0)

如何修复`npm install`上包的超时?

当我运行时,npm install它似乎工作正常,直到部分安装软件包。前半部分好像没有问题,但是过一段时间就无法访问其他包了。我只是得到重复的错误,例如:

npm http request GET https://registry.npmjs.org/react-hot-loader
npm info attempt registry request try #3 at 6:43:34 AM
npm http request GET https://registry.npmjs.org/react-tap-event-plugin
npm info attempt registry request try #3 at 6:43:34 AM
npm http request GET https://registry.npmjs.org/react-test-renderer
Run Code Online (Sandbox Code Playgroud)

等等。

它将继续执行此操作一个小时,然后安装将失败。

每次安装都会在不同的包中中断,所以我认为这不是特定文件的问题。

我可以使用浏览器和curl.

我的工作有防火墙,但此域已列入白名单。

有谁知道我能做些什么来让它工作或可能是什么原因造成的?

npm npm-install

10
推荐指数
4
解决办法
3万
查看次数

标签 统计

npm ×1

npm-install ×1