nx-serverless
nx-serverless copied to clipboard
ERESOLVE could not resolve
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/[email protected]
npm ERR! Found: @typescript-eslint/[email protected]
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/[email protected]
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/[email protected]
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/[email protected]
npm ERR! node_modules/@typescript-eslint/parser
npm ERR! peer @typescript-eslint/parser@"~5.18.0" from @nrwl/[email protected]
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.
Duplicate of https://github.com/ngneat/nx-serverless/issues/12
Suggested fix: npm i --force
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/[email protected] npm ERR! Found: @typescript-eslint/[email protected] 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/[email protected] 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/[email protected] 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/[email protected] npm ERR! node_modules/@typescript-eslint/parser npm ERR! peer @typescript-eslint/parser@"~5.18.0" from @nrwl/[email protected] 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.