Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm install fails on Could not resolve dependency: mocha-jsdom #289

Open
ChillerDragon opened this issue Apr 21, 2021 · 1 comment
Open

Comments

@ChillerDragon
Copy link

$ docker build -t adminmongo .
Sending build context to Docker daemon  11.26MB
Step 1/6 : FROM node:alpine
alpine: Pulling from library/node
ddad3d7c1e96: Pull complete
0e18143e8d4d: Pull complete
377ad682a98b: Pull complete
99b3e0ba5237: Pull complete
Digest: sha256:3ca0132180509b9fd68545b2232dd9fc01726c06fc36b772389d41b82d81a8de
Status: Downloaded newer image for node:alpine
 ---> 75631da67663
Step 2/6 : WORKDIR /app/user
 ---> Running in b60f68744f4c
Removing intermediate container b60f68744f4c
 ---> 28fcc043a028
Step 3/6 : COPY package.json .
 ---> b52f7040f964
Step 4/6 : RUN npm install --production
 ---> Running in 1ff267243246
npm notice 
npm notice New minor version of npm available! 7.7.6 -> 7.10.0
npm notice Changelog: <https://github.com/npm/cli/releases/tag/v7.10.0>
npm notice Run `npm install -g [email protected]` to update!
npm notice 
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/jsdom
npm ERR!   dev jsdom@"^9.4.1" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer jsdom@">10.0.0" from [email protected]
npm ERR! node_modules/mocha-jsdom
npm ERR!   dev mocha-jsdom@"^1.1.0" 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-04-21T09_42_55_122Z-debug.log
The command '/bin/sh -c npm install --production' returned a non-zero code: 1
@tonkolviktor
Copy link

Hi @ChillerDragon
I've got the same problem, until someone fixes it properly you can use this:
npm install --force

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants