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

Unable to install since npm version 8.6.0 #453

Open
fredden opened this issue Jul 5, 2022 · 2 comments
Open

Unable to install since npm version 8.6.0 #453

fredden opened this issue Jul 5, 2022 · 2 comments

Comments

@fredden
Copy link

fredden commented Jul 5, 2022

We've recently upgraded our 'node' docker image which brought an upgrade of npm (from version 8.1.2 to version 8.11.0). From what I can tell, there is a change that was introduced in npm version 8.6.0 which is not compatible with this module.

I've checked that I'm on the latest version of this package (tested with both version 1.12.0 and 1.12.2)

Steps to reproduce

  1. Clone this repository (tested with 2a58547, which is tagged version 1.12.2)
  2. Run docker run --rm -it -v $PWD:/app -w /app node:16 npm install

Expected result

Task completes successfully.

Actual result

Screenshot_2022-07-05_12-35-50

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: eslint-plugin-compat@3.13.0
npm ERR! Found: eslint@8.1.0
npm ERR! node_modules/eslint
npm ERR!   eslint@"^8.1.0" from the root project
npm ERR!   peer eslint@">=5" from eslint-utils@3.0.0
npm ERR!   node_modules/eslint-utils
npm ERR!     eslint-utils@"^3.0.0" from eslint@8.1.0
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer eslint@"^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0" from eslint-plugin-compat@3.13.0
npm ERR! node_modules/eslint-plugin-compat
npm ERR!   eslint-plugin-compat@"^3.13.0" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: eslint@7.32.0
npm ERR! node_modules/eslint
npm ERR!   peer eslint@"^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0" from eslint-plugin-compat@3.13.0
npm ERR!   node_modules/eslint-plugin-compat
npm ERR!     eslint-plugin-compat@"^3.13.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/2022-07-05T11_35_35_317Z-debug-0.log

At time of writing the 'node:16' image has npm version 8.11.0. When testing with version 8.5.5 this works, and from 8.6.0 this error shows.
Works: docker run --rm -it -v $PWD:/app -w /app node:16 bash -c 'npm install -g npm@8.5.5 && npm install'
Error as above: docker run --rm -it -v $PWD:/app -w /app node:16 bash -c 'npm install -g npm@8.6.0 && npm install'

@linshin
Copy link

linshin commented Sep 26, 2022

We have the same problem, any updates?

@davidwindell
Copy link

We were able to work around this with npm install --legacy-peer-deps

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

3 participants