Closed
Description
🐞 Bug report
Command (mark with an x
)
- [ ] new
- [ ] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [x] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc
Is this a regression?
Yes, the previous version in which this bug was not present was: ....Actually this command never worked.
Description
A clear and concise description of the problem...ng update
cannot handle incompatible peer dependency.
🔬 Minimal Reproduction
Whenever you what to update your Angular packages, run ng update --all
$ ng update --all
Using package manager: 'npm'
Collecting installed dependencies...
Found 40 dependencies.
Package "@angular/core" has an incompatible peer dependency to "zone.js" (requires "~0.9.1", would install "0.10.1")
Package "@angular/core" has an incompatible peer dependency to "zone.js" (requires "~0.9.1", would install "0.10.1").
Incompatible peer dependencies found.
Peer dependency warnings when installing dependencies means that those dependencies might not work correctly together.
You can use the '--force' option to ignore incompatible peer dependencies and instead address these warnings later.
Update a single package also has problem:
$ ng update @angular/core
Using package manager: 'npm'
Collecting installed dependencies...
Found 40 dependencies.
Fetching dependency metadata from registry...
Package "@angular-devkit/build-angular" has an incompatible peer dependency to "typescript" (requires ">=3.1 < 3.5", would install "3.5.3").
Incompatible peer dependencies found.
Peer dependency warnings when installing dependencies means that those dependencies might not work correctly together.
You can use the '--force' option to ignore incompatible peer dependencies and instead address these warnings later.
This problem has been here for years:
#15278 #14980 #15179 #13095 #14581 #15193 #12261 #12243 #11387 #10875 #14420 #14764 #14650 #14562 #14561 #14546 #14310 #11876 #10621 #7625 #13126 #13139
And there are more.