Reputation: 1
This issue just popped up recently, like 20 minutes ago and I have no idea what's causing it. Prior to those 20 minutes, npm install was working just fine. I'm involved currently in web development and I'm attempting to use nginx to set up my website. Inside of my node.js folder that I've allocated to the website, I'm attempting to run this line:
npm install express mysql2 dotenv cors
It prompts me with the typical moving loading icon, which is to be expected, but then it keeps showing that loading icon for a solid 5-6 minutes atleast before giving me an error:
npm error code EAI_AGAIN
npm error syscall getaddrinfo
npm error errno EAI_AGAIN
npm error request to https://registry.npmjs.org/cors failed, reason: getaddrinfo EAI_AGAIN registry.npmjs.org
npm error Log files were not written due to an error writing to the directory: /root/.npm/_logs
npm error You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
I have no clue what's going on. I tried changing my DNS to Google's, I searched up the issue online and apparently people are suggesting to change internet connection - I have no idea which other internet connection to use though.
I don't use Docker and the VPS is hosted on DigitalOcean. I also don't use FireBase Cloud Functions.
Upvotes: -2
Views: 31