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\_logs\2023-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 (getaddrinfo EAI_AGAIN registry.npmjs.org:80) 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!