-
Notifications
You must be signed in to change notification settings - Fork 396
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
npm install error - getaddrinfo EAI_AGAIN registry.npmjs.org:443 #270
Comments
Hi @akelle17 Maybe running the script mentioned in https://docs.microsoft.com/en-us/virtualization/windowscontainers/troubleshooting gives you more details. |
Still having problems? |
This known issue for Docker and is discussed in detail here: https://development.robinwinslow.uk/2016/06/23/fix-docker-networking-dns/ Simple fix is to create the file and insert:
where |
This issue again coming, can you guys please tell me how to solve this, especially if this is on the AWS |
I can't install browser sync still this error appears. |
pm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning EAI_AGAIN: request to https://registry.npmjs.org/npm failed, reason: getaddrinfo EAI_AGAIN registry.npmjs.org registry.npmjs.org:443
any have idea for solve it ? help me please |
In earlier Windows versions sometimes a sleep has helped before running commands that need internet connection. It seemed that the RUN instruction and setting up network runs in parallel. See
|
|
Restarting system resolved my issue. |
Hi All, I am running Docker Toolbox on windows 10 home. Following were the steps(In Docker console -> Docker Quick Start and using bash from git installation):
Created docker file(Dockerfile.dev):FROM node:alpine WORKDIR '/app' COPY package.json . RUN npm install COPY . . CMD ["npm", "run", "start"]$ docker build -f Dockerfile.dev . Output in console: Sending build context to Docker daemon 146.5MB npm ERR! A complete log of this run can be found in:
|
Yes! It worked! Thank you! |
@karanvij-ai Seeing the same issue, were you able to find a fix? |
I got a server network issue, and a client restart to let me ssh, and the problem happened. I'll show my steps to slove this issue, hope it help someone 😄
|
@Tokenyet it did solve my issue. Thanks alot. |
I couldn't resolve issue with adding DNS setting to docker daemon, but I found another solution (maybe this will be useful for someone) - just use host network to resolve dns names by adding |
Not sure if this will help or even why this is a thing but.. |
it's works |
worked for me 😊 |
it's works. thank u so much~👏 |
Worked for me. |
This solved my issue on Fedora 32. |
I had the same issue on WSL2 Ubuntu, @binarymist solution worked. |
@binarymist @Tokenyet thank you guys ! your solution was really helpful ! |
Problem Solution I hope this is helpful to those using windows containers on Windows clients. |
that doesn't work for me and the other solutions don't work either. I'm on Ubuntu 20.04 |
restarting worked for me ( |
After creating the file I had to reboot the machine then it worked. 👍 |
Works like a charm on a Digitalocean VPS |
You just saved me severally days of headache. |
This one worked for me! Thank you |
This works for me. Thanks a lot dude. |
yes i am also getting same like: |
For the peeps using Buildah who came across this issue when using alpine image, I updated the buildah build command to override container dns with google dns server |
hey guys, i run Docker 24.0.7 on Ubuntu 22.04.3 LTS. weird but... a restart solved my problem too!!! could be related to any port mapping i run before that with Nginx container (docker run -p 8080:80 -v $PWD:/usr/share/nginx/html nginx) i saw it created a FW rule on my Ubuntu |
Hello Members, Docker Version: 24.0.7 Short answer: Long Answer :
After I enabled ipv4 forward. It started working. |
Everytime I try to npm install a file I get the following error:
getaddrinfo EAI_AGAIN registry.npmjs.org:443
I am using stefanscherer/node-windows:8.9.3 image but have had this issue with many other images as well.
Initial npm error:
npm logs:
The text was updated successfully, but these errors were encountered: