Is something wrong with the docker file or the network configurations Using DockerFile. Npm ERR! A complete log of this run can be found in: i am trying to setup laravel php setup using docker. Npm ERR! request to failed, reason: getaddrinfo EAI_AGAIN :443 The problem is when docker runs npm install -f, initially I changed the command to npm install but the problem still persists. Actually working on the project code is not a problem since it gets cloned by the developer, but npm install is done through docker and thus root. ![]() ![]() I am expecting the service "client" to successfully build but I keep getting the following error. # add /usr/src/app/node_modules/.bin to $PATHĮNV PATH /usr/src/app/node_modules/.bin:$PATHĬOPY package.json /usr/src/app/package.jsonĬOPY package-lock.json /usr/src/app/package-lock.json I have tried restarting the docker-machine and docker clients.ĭocker-machine version 0.16.0, build 702c267fĭocker-compose version 1.17.1, build unknown Steps to reproduce: UserPC MINGW64 /Tomcat ls docker-compose.yml nb-configuration.xml pom.xml Readme.md target/ tomcat/ UserPC MINGW64 /Tomcat docker-compose up -d -build Result (the part in which bad stuff happens): Step 16/22 : RUN set -x & apk add -no-cache -virtual. How should I go about troubleshooting this error? ![]() Note that the same process continues to work locally. I am setting up a container that will host my react client code but the build fails on the local machine with an exit code of 1. errorThe command /bin/sh -c npm install returned a non-zero code: 1 errorThe process /usr/bin/docker failed with exit code 1.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |