DEV Community

Dênis Mendes
Dênis Mendes

Posted on

3

Error: reason: connect ENETUNREACH 2606:4700::6810:1023:443

If you're experiencing that kind of error message when trying to install something related with NodeJS in docker container, you should try that trick, in your Dockerfile adds that command:

ENV NODE_OPTIONS="--dns-result-order=ipv4first"

See my Dockerfile:

FROM node:18.15.0

ENV NODE_OPTIONS="--dns-result-order=ipv4first"

RUN npm install -g @nestjs/cli
Enter fullscreen mode Exit fullscreen mode

I hope it helps you in some way.

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay