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

时间:2015-12-17 15:43:02

标签: node.js dns docker npm

为什么我无法在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

1 个答案:

答案 0 :(得分:2)

由于某些原因,Nodier版本出现了问题:最新版本(5.3)。版本节点与4.2一个良好的工作。 WTF?