简体   繁体   English

安装节点时出错:npm ERR 代码 ETIMEDOUT

[英]Error on installing node: npm ERR code ETIMEDOUT

I am trying to install npm in a particular directory on the office's laptop.我正在尝试将 npm 安装到办公室笔记本电脑的特定目录中。 But it is throwing an error:但它抛出一个错误:

npm ERR! npm 错误! code ETIMEDOUT代码超时

npm ERR! npm 错误! syscall connect系统调用连接

npm ERR! npm 错误! errno ETIMEDOUT错误号 ETIMEDOUT

npm ERR,.network request to 'company-url' failed: reason. npm ERR,.network 请求 'company-url' 失败:原因。 connect ETIMEDOUT 10.82.13:225:4873连接 ETIMEDOUT 10.82.13:225:4873

npm ERR..network This is a problem related to.network connectivity. npm ERR..network 这是一个与网络连接相关的问题。

npm ERR..network In most cases you are behind a proxy or have bad.network settings. npm ERR..network 在大多数情况下,您在代理后面或具有错误的网络设置。

My questions here are:我的问题是:

  1. How can I fix the above errors?我该如何解决上述错误?
  2. In general, How can I check whether the proxy is set on my laptop or not?一般来说,如何检查我的笔记本电脑上是否设置了代理?
  3. I had searched about this issue and saw some suggestions to change the proxy settings.我搜索过这个问题,看到了一些更改代理设置的建议。 Will there be any conflict with the company's policies if I change them (as per the solutions that I found on google)?如果我更改它们(根据我在谷歌上找到的解决方案),是否会与公司的政策发生冲突?

Disable ipv6 work on my case.在我的案例中禁用 ipv6。 Instruction on Windows: https:/.networking.grok.lsu.edu/Article.aspx?articleid=17573关于 Windows 的说明: https:/.networking.grok.lsu.edu/Article.aspx?articleid=17573

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM