mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-17 02:54:21 +08:00
npm 7+ can fail due to it incorrectly resolving peer dependencies that have valid SemVer ranges during an `ng update`. Update will set correct versions of dependencies within the package.json file. However, the failing npm package installation will cause the update process to abort. To workaround these errors, the npm force option is set during package installation when the npm package manager at version 7.0.0 or greater is used during an update. Example error: ``` npm ERR! Conflicting peer dependency: @angular/compiler-cli@14.0.0-rc.0 npm ERR! node_modules/@angular/compiler-cli npm ERR! peer @angular/compiler-cli@"^14.0.0 || ^14.0.0-rc" from @angular-devkit/build-angular@14.0.0-rc.0 npm ERR! node_modules/@angular-devkit/build-angular npm ERR! dev @angular-devkit/build-angular@"~14.0.0-rc.0" from the root project ```
Angular CLI - The CLI tool for Angular.
The sources for this package are in the Angular CLI repository. Please file issues and pull requests against that repository.
Usage information and reference details can be found in repository README file.