I have been trying to update our Angular 8 to 9 except I keep running into an error about dependencies not being able to be resolved.
I tried updating the local CLI first but that gave me the same errors. My global CLI is updated as well. Running ng update @angular/cli@9 gives me the following error:
ng update @angular/cli@9
Found: @angular-devkit/[email protected] node_modules/@angular-devkit/build-angular dev @angular-devkit/build-angular@"^0.901.13" from the root project Could not resolve dependency: dev @angular-devkit/build-angular@"^0.901.13" from the root project Conflicting peer dependency: @angular/[email protected] node_modules/@angular/compiler-cli peer @angular/compiler-cli@">=9.0.0 < 10" from @angular-devkit/[email protected] node_modules/@angular-devkit/build-angular dev @angular-devkit/build-angular@"^0.901.13" from the root project
Following the Angular update tool doesn't seem of much help. How do I go about fixing this error?
I have no idea what causes the issue but running the exact same steps on a different machine solved it. Both machines run the same versions of node/npm/angular CLI etc. Cannot tell what the issue was.
1.4m articles
1.4m replys
5 comments
56.9k users