泊坞窗。 npm install – >错误:getaddrinfo ENOTFOUND

为什么我无法在Docker中收到包node.js。 我收到以下消息:

Step 10 : RUN npm install ---> Running in 20f3e58dea20 npm info it worked if it ends with ok npm info using npm@2.14.7 npm info using node@v4.2.3 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 

       

网上收集的解决方案 "泊坞窗。 npm install – >错误:getaddrinfo ENOTFOUND"