I encountered an issue while trying to create a new project with Angular CLI v13.1.0
\ Installing packages (npm)...npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="42273a232f322e276f23323202726c726c72">[email protected]</a>
npm ERR! Found: <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="6d19141d081e0e1f041d192d594358435e">[email protected]</a>
npm ERR! node_modules/typescript
npm ERR! dev typescript@"~4.5.2" from the root project
npm ERR! peer typescript@">=4.4.3 <4.6" from @angular-devkit/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a8caddc1c4cc85c9c6cfddc4c9dae8999b86998698">[email protected]</a>
npm ERR! node_modules/@angular-devkit/build-angular
npm ERR! dev @angular-devkit/build-angular@"~13.1.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer typescript@">=4.4.2 <4.5" from @angular/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="4d2e22203d2421283f602e21240d7c7e637d637e">[email protected]</a>
npm ERR! node_modules/@angular/compiler-cli
npm ERR! dev @angular/compiler-cli@"~13.0.0" from the root project
npm ERR! peer @angular/compiler-cli@"^13.0.0 || ^13.1.0-next" from @angular-devkit/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="bddfc8d4d1d990dcd3dac8d1dccffd8c8e938c938d">[email protected]</a>
npm ERR! node_modules/@angular-devkit/build-angular
npm ERR! dev @angular-devkit/build-angular@"~13.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! See C:\Users\user\AppData\Local\npm-cache\eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\user\AppData\Local\npm-cache\_logs\2021-12-10T12_46_21_814Z-debug.log
× Package install failed, see above.
The Schematic workflow failed. See above.
My current setup includes Node JS
version 16.13.1 and npm
version 8.1.2
After attempting to clear npm cache using --force and reinstalling Node JS, the issue persists.