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 when using npm 7 #9630

Closed
lilleyse opened this issue Jun 22, 2021 · 3 comments
Closed

npm install fails when using npm 7 #9630

lilleyse opened this issue Jun 22, 2021 · 3 comments

Comments

@lilleyse
Copy link
Contributor

$ npm -v
7.15.1
$ node -v
v16.3.0
$ npm install
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/rollup
npm ERR!   dev rollup@"^2.22.1" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer rollup@">=0.66.0 <2" from [email protected]
npm ERR! node_modules/rollup-plugin-uglify
npm ERR!   dev rollup-plugin-uglify@"^6.0.3" 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 /home/slilley/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/slilley/.npm/_logs/2021-06-22T18_29_05_270Z-debug.log

npm install --legacy-peer-deps is a workaround. See https://stackoverflow.com/a/66035709

@e3dio
Copy link
Contributor

e3dio commented Jun 22, 2021

Duplicate Related #9467 #9129

PR #9214

@lilleyse
Copy link
Contributor Author

Thanks @e3dio I continued the conversation in #9214

@ggetz
Copy link
Contributor

ggetz commented Jan 13, 2022

Ran into this problem but was able to remove all packages, clean the npm cache, and re-install without issue.

@lilleyse Is there anything actionable left in this issue after #9828, or can it be closed?

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

Successfully merging a pull request may close this issue.

3 participants