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

ERESOLVE could not resolve #16

Open
jon9090 opened this issue Jul 31, 2022 · 2 comments
Open

ERESOLVE could not resolve #16

jon9090 opened this issue Jul 31, 2022 · 2 comments

Comments

@jon9090
Copy link

jon9090 commented Jul 31, 2022

After clone I was running npm install and I got this error:

npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @nrwl/eslint-plugin-nx@14.1.2
npm ERR! Found: @typescript-eslint/parser@5.19.0
npm ERR! node_modules/@typescript-eslint/parser
npm ERR!   dev @typescript-eslint/parser@"5.19.0" from the root project
npm ERR!   peer @typescript-eslint/parser@"^5.0.0" from @typescript-eslint/eslint-plugin@5.19.0
npm ERR!   node_modules/@typescript-eslint/eslint-plugin
npm ERR!     dev @typescript-eslint/eslint-plugin@"5.19.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @typescript-eslint/parser@"~5.18.0" from @nrwl/eslint-plugin-nx@14.1.2
npm ERR! node_modules/@nrwl/eslint-plugin-nx
npm ERR!   dev @nrwl/eslint-plugin-nx@"14.1.2" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: @typescript-eslint/parser@5.18.0
npm ERR! node_modules/@typescript-eslint/parser
npm ERR!   peer @typescript-eslint/parser@"~5.18.0" from @nrwl/eslint-plugin-nx@14.1.2
npm ERR!   node_modules/@nrwl/eslint-plugin-nx
npm ERR!     dev @nrwl/eslint-plugin-nx@"14.1.2" 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.
@KevinDufendach
Copy link

Duplicate of #12

Suggested fix: npm i --force

@cmcnicholas
Copy link

After clone I was running npm install and I got this error:

npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @nrwl/eslint-plugin-nx@14.1.2
npm ERR! Found: @typescript-eslint/parser@5.19.0
npm ERR! node_modules/@typescript-eslint/parser
npm ERR!   dev @typescript-eslint/parser@"5.19.0" from the root project
npm ERR!   peer @typescript-eslint/parser@"^5.0.0" from @typescript-eslint/eslint-plugin@5.19.0
npm ERR!   node_modules/@typescript-eslint/eslint-plugin
npm ERR!     dev @typescript-eslint/eslint-plugin@"5.19.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @typescript-eslint/parser@"~5.18.0" from @nrwl/eslint-plugin-nx@14.1.2
npm ERR! node_modules/@nrwl/eslint-plugin-nx
npm ERR!   dev @nrwl/eslint-plugin-nx@"14.1.2" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: @typescript-eslint/parser@5.18.0
npm ERR! node_modules/@typescript-eslint/parser
npm ERR!   peer @typescript-eslint/parser@"~5.18.0" from @nrwl/eslint-plugin-nx@14.1.2
npm ERR!   node_modules/@nrwl/eslint-plugin-nx
npm ERR!     dev @nrwl/eslint-plugin-nx@"14.1.2" 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.

repo is stale with current state of nx, best option is to npm i --force then follow https://nx.dev/core-features/automate-updating-dependencies to update deps, do this across the board for the entire package.json whilst you're at it to get it to baseline.

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