npm 不下载包(连接 ETIMEDOUT) [英] npm doesn't download packages (connect ETIMEDOUT)

查看:73
本文介绍了npm 不下载包(连接 ETIMEDOUT)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于某种原因,我的 npm 突然停止使用网络.

For some reason my npm stopped working with network suddenly.

我真的不明白为什么,所以我决定查看 stackoverflow 的问题,但我能找到的所有答案都是关于在 corporate 代理后面运行 npm,但我在家工作,我不没有代理.

I didn't really get why, so I decided to look through the stackoverflow questions but all the answers I could find were about running npm behind corporate proxies, but I work at home and I don't have a proxy.

以下是我的控制台的几个屏幕截图,其中包含 npm 错误:

Below is a couple of screenshots of my console with npm errors:

也许有人已经遇到过那个问题并且知道如何解决它?

Maybe someone has already encountered that problem and knows how to solve it?

PS:我读过一个人说我只需要等一会儿,npm 服务器可能就宕机了,但已经有 2 天了,我无法使用 npm:(

PS: I've read one guy saying that I just need to wait a bit and that npm servers might just be down, but it's already been for 2 days and I can't use npm:(

希望有人能帮忙)

推荐答案

感谢 Bidhan,命令 npm config delete proxy 解决了这个问题.

Thanks to Bidhan, the command npm config delete proxy solved the issue.

这篇关于npm 不下载包(连接 ETIMEDOUT)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆