'Update node in my project and now I have errors with angular 13.3.1
I have a project in ionic and when updating node I could no longer use ionic serve.
I use the command ng --version and the result was the following:
Angular CLI: 13.3.1
Node: 16.14.2
Package Manager: npm 8.6.0
OS: win32 x64
Angular: 13.3.1 (cli-only)
... cli, core
Package Version
-------------------------------------------------------------
@angular-devkit/architect 0.1303.1 (cli-only)
@angular-devkit/build-angular 13.3.1 (cli-only)
@angular-devkit/core 13.3.1 (cli-only)
@angular-devkit/schematics 13.3.1 (cli-only)
@angular/common <error>
@angular/compiler <error>
@angular/compiler-cli <error>
@angular/forms <error>
@angular/language-service <error>
@angular/platform-browser <error>
@angular/platform-browser-dynamic <error>
@angular/router <error>
@schematics/angular 13.3.1 (cli-only)
rxjs 6.6.7 (cli-only)
typescript 4.6.2 (cli-only)
And when I try to use npm install I get the following:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: @angular-devkit/[email protected]
npm ERR! node_modules/@angular-devkit/build-angular
npm ERR! @angular-devkit/build-angular@"^13.3.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular-devkit/build-angular@"^0.1102.4" from @ionic/[email protected]
npm ERR! node_modules/@ionic/angular-toolkit
npm ERR! dev @ionic/angular-toolkit@"^3.0.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.
I tried to uninstall and install angular but it didn't work, I also uninstalled node and reinstalled it but it didn't work either
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
