Skip to content
This repository was archived by the owner on Oct 3, 2025. It is now read-only.
This repository was archived by the owner on Oct 3, 2025. It is now read-only.

docker-compose build fails with npm error #49

@nilp0inter

Description

@nilp0inter

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions