Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Docker. npm install -> Error: getaddrinfo ENOTFOUND

Why I can not receive the packages node.js in Docker. I get the following message:

Step 10 : RUN npm install
 ---> Running in 20f3e58dea20
npm info it worked if it ends with ok
npm info using [email protected]
npm info using [email protected]
npm http request GET https://registry.npmjs.org/amqp
npm info attempt registry request try #2 at 3:40:26 PM
npm http request GET https://registry.npmjs.org/mongodb
npm info retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:443
npm info retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:443
npm info retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:443
like image 214
batazor Avatar asked Oct 30 '22 13:10

batazor


1 Answers

For some reason there a problem with the version of Nodier: latest (5.3). Version node with the 4.2 a good worked. WTF?

like image 164
batazor Avatar answered Nov 13 '22 10:11

batazor