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

Cant install ng2-charts because of eslint dependancy #1989

Open
blogcraft opened this issue Jul 2, 2024 · 0 comments
Open

Cant install ng2-charts because of eslint dependancy #1989

blogcraft opened this issue Jul 2, 2024 · 0 comments

Comments

@blogcraft
Copy link

Reproduction of the problem

My project has a dependency on "@angular-eslint/eslint-plugin": "18.1.0", we update angular regularly and eslint too.

But there is a problem when trying to add ng2-charts to the project:

ng add ng2-charts

ℹ Using package manager: npm
✔ Found compatible package version: [email protected].
✔ Package information loaded.

The package [email protected] will be installed and executed.
Would you like to proceed? Yes
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @angular-eslint/[email protected]
npm ERR! Found: @typescript-eslint/[email protected]
npm ERR! node_modules/@typescript-eslint/utils
npm ERR!   @typescript-eslint/utils@"7.8.0" from @typescript-eslint/[email protected]
npm ERR!   node_modules/@typescript-eslint/eslint-plugin
npm ERR!     dev @typescript-eslint/eslint-plugin@"^7.2.0" from the root project
npm ERR!   @typescript-eslint/utils@"7.8.0" from @typescript-eslint/[email protected]
npm ERR!   node_modules/@typescript-eslint/type-utils
npm ERR!     @typescript-eslint/type-utils@"7.8.0" from @typescript-eslint/[email protected]
npm ERR!     node_modules/@typescript-eslint/eslint-plugin
npm ERR!       dev @typescript-eslint/eslint-plugin@"^7.2.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @typescript-eslint/utils@"^7.11.0 || ^8.0.0-alpha.37" from @angular-eslint/[email protected]
npm ERR! node_modules/@angular-eslint/eslint-plugin
npm ERR!   @angular-eslint/eslint-plugin@"18.1.0" from @angular-eslint/[email protected]
npm ERR!   node_modules/@angular-eslint/schematics
npm ERR!     dev @angular-eslint/schematics@"18.1.0" from the root project
npm ERR!   dev @angular-eslint/eslint-plugin@"18.1.0" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: @typescript-eslint/[email protected]
npm ERR! node_modules/@typescript-eslint/utils
npm ERR!   peer @typescript-eslint/utils@"^7.11.0 || ^8.0.0-alpha.37" from @angular-eslint/[email protected]
npm ERR!   node_modules/@angular-eslint/eslint-plugin
npm ERR!     @angular-eslint/eslint-plugin@"18.1.0" from @angular-eslint/[email protected]
npm ERR!     node_modules/@angular-eslint/schematics
npm ERR!       dev @angular-eslint/schematics@"18.1.0" from the root project
npm ERR!     dev @angular-eslint/eslint-plugin@"18.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!
npm ERR! For a full report see:
npm ERR! C:\Users\Gerardo Buenrostro\AppData\Local\npm-cache\_logs\2024-07-02T16_49_27_046Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: C:\Users\Gerardo Buenrostro\AppData\Local\npm-cache\_logs\2024-07-02T16_49_27_046Z-debug-0.log    
✖ Packages installation failed, see above.

There seems to be a PR that fixes this, but it has not been merged.
#1988

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

1 participant