Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 7069

Can't npm install about anything on my VPS

$
0
0

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_AGAINnpm error syscall getaddrinfonpm error errno EAI_AGAINnpm error request to https://registry.npmjs.org/cors failed, reason: getaddrinfo EAI_AGAIN registry.npmjs.orgnpm error Log files were not written due to an error writing to the directory: /root/.npm/_logsnpm 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.


Viewing all articles
Browse latest Browse all 7069

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>