“npm install”命令在”getaddrinfo”系统调用时出现”EAI_AGAIN”错误。

huangapple go评论91阅读模式
英文:

"npm install" command gives "EAI_AGAIN" error with "getaddrinfo" syscall

问题

I'm trying to run the "npm install" command in my react project on Windows, this was working a few days ago, but now I keep getting the following error message:

npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
npm ERR! code EAI_AGAIN
npm ERR! syscall getaddrinfo
npm ERR! errno EAI_AGAIN
npm ERR! request to https://registry.npmjs.org/@date-io%2fmoment failed, reason: getaddrinfo EAI_AGAIN web-proxy.sdc.hpecorp.net

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\myuser\AppData\Local\npm-cache\_logs23-04-17T07_59_06_601Z-debug-0.log"

I have tried several solutions such as changing my DNS to 8.8.8.8, reinstalling Node.js, and connecting to other networks, but none of them worked. Interestingly, other computers on the same network can run "npm install" without any issues.

I have also looked at this Stack Overflow question (https://stackoverflow.com/questions/48158939/getaddrinfo-eai-again-registry-npmjs-org80) and tried the suggested solutions, but they didn't work for me.

Can anyone suggest any other solutions or point me in the right direction? Thank you in advance for your help!

英文:

I'm trying to run the "npm install" command in my react project on windows, this was working a few days ago, but now I keep getting the following error message:

npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
npm ERR! code EAI_AGAIN
npm ERR! syscall getaddrinfo
npm ERR! errno EAI_AGAIN
npm ERR! request to https://registry.npmjs.org/@date-io%2fmoment failed, reason: getaddrinfo EAI_AGAIN web-proxy.sdc.hpecorp.net

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\myuser\AppData\Local\npm-cache\_logs23-04-17T07_59_06_601Z-debug-0.log"

I have tried several solutions such as changing my DNS to 8.8.8.8, reinstalling Node.js, and connecting to other networks, but none of them worked. Interestingly, other computers on the same network can run "npm install" without any issues.

I have also looked at this Stack Overflow question (https://stackoverflow.com/questions/48158939/getaddrinfo-eai-again-registry-npmjs-org80) and tried the suggested solutions, but they didn't work for me.

Can anyone suggest any other solutions or point me in the right direction? Thank you in advance for your help!

答案1

得分: 0

我写信通知您,在Windows上运行我的React项目中遇到的问题已经解决了。尽管我尝试了多种解决方法,比如更改我的DNS和重新安装Node.js,但问题一直存在,直到最近问题在没有我做任何进一步更改的情况下自行解决了。

英文:

I am writing to inform you that the issue I was experiencing with running "npm install" in my React project on Windows has been resolved. Although I tried several solutions, such as changing my DNS and reinstalling Node.js, the problem persisted until recently, when the issue resolved itself without any further changes made on my end.

huangapple
  • 本文由 发表于 2023年4月17日 16:15:16
  • 转载请务必保留本文链接:https://go.coder-hub.com/76033017.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定