This repository was archived by the owner on Oct 3, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 96
This repository was archived by the owner on Oct 3, 2025. It is now read-only.
docker-compose build fails with npm error #49
Copy link
Copy link
Open
Description
I am trying to build the project using the documented docker-compose method, but it fails with the following error:
Step 1/12 : FROM golang:alpine
---> cfae2977b751
Step 2/12 : WORKDIR /src
---> Using cache
---> c9e8ff511471
Step 3/12 : RUN apk add --update npm git
---> Using cache
---> 90272c3dd00c
Step 4/12 : RUN go get -u github.com/jteeuwen/go-bindata/...
---> Using cache
---> cbc745e0259a
Step 5/12 : COPY ./webapp/package.json webapp/package.json
---> Using cache
---> 6a4e12da9a92
Step 6/12 : RUN cd ./webapp && npm install
---> Running in 4dfc7f1722bb
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: featmap-client@0.1.0
npm ERR! Found: history@5.0.0
npm ERR! node_modules/history
npm ERR! history@"^5.0.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer history@"^4.7.2" from connected-react-router@6.9.1
npm ERR! node_modules/connected-react-router
npm ERR! connected-react-router@"^6.9.1" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /root/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-08-13T08_47_30_097Z-debug.log
The command '/bin/sh -c cd ./webapp && npm install' returned a non-zero code: 1
I successfully build it by adding --force to npm install but it doesn't seems like the optimal solution.
freemanlingli
Metadata
Metadata
Assignees
Labels
No labels