英文:
"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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论