0
respostas

Erro NPM INSTALL

loliveiras@loliveiras:/home/dev/docker/alura-docker-cap06$ docker-compose build mongodb uses an image, skipping Building node2 Step 1/9 : FROM node:latest ---> 4d032a7b0ca9 Step 2/9 : MAINTAINER Douglas Quintanilha ---> Using cache ---> 5e50b065f269 Step 3/9 : ENV NODE_ENV=development ---> Using cache ---> bce2718d3b76 Step 4/9 : COPY . /var/www ---> Using cache ---> 2ce900d6d877 Step 5/9 : WORKDIR /var/www ---> Using cache ---> 52a4b1bc602a Step 6/9 : RUN npm config set strict-ssl=false ---> Using cache ---> aeb5cecc96d4 Step 7/9 : RUN npm install ---> Running in b0cc5750f569 npm ERR! code EAI_AGAIN npm ERR! syscall getaddrinfo npm ERR! errno EAI_AGAIN npm ERR! request to https://registry.npmjs.org/express failed, reason: getaddrinfo EAI_AGAIN registry.npmjs.org

npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/logs/2021-03-26T1152_08_291Z-debug.log ERROR: Service 'node2' failed to build: The command '/bin/sh -c npm install' returned a non-zero code: 1 loliveiras@loliveiras:/home/dev/docker/alura-docker-cap06$