Package "@angular/compiler-cli" has an incompatible peer dependency to "typescript" (requires ">=3.1.1 <3.2", would install "3.2.1")
See original GitHub issueBug Report or Feature Request (mark with an x)
- [x] bug report -> please search issues before submitting
- [ ] feature request
Command (mark with an x)
- [ ] new
- [ ] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [x] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc
Versions
Node Version: v8.11.4
npm Version: 6.4.1
ng Version:
Angular CLI: 7.0.4
Node: 8.11.4
OS: win32 x64
Angular: 7.0.2
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.10.4
@angular-devkit/build-angular 0.10.4
@angular-devkit/build-optimizer 0.10.4
@angular-devkit/build-webpack 0.10.4
@angular-devkit/core 7.0.4
@angular-devkit/schematics 7.0.4
@angular/cli 7.0.4
@ngtools/webpack 7.0.4
@schematics/angular 7.0.4
@schematics/update 0.10.4
rxjs 6.3.3
typescript 3.1.6
webpack 4.19.1
Repro steps
ng update --all
The log given by the failure
Package "@angular/compiler-cli" has an incompatible peer dependency to "typescript" (requires ">=3.1.1 <3.2", would install "3.2.1")
Package "@angular/compiler-cli" has an incompatible peer dependency to "typescript" (requires ">=3.1.1 <3.2", would install "3.2.1").
Incompatible peer dependencies found. See above.
Desired functionality
Mention any other details that might be useful
Issue Analytics
- State:
- Created 5 years ago
- Reactions:70
- Comments:31
Top Results From Across the Web
ERROR in The Angular Compiler requires TypeScript >=3.1.1 ...
In my case below command worked for windows. It will install latest required version between 3.1.1 and 3.2.
Read more >you must install peer dependencies yourself Code Example
npm WARN @angular/compiler-cli@8.2.14 requires a peer of typescript@>=3.4 <3.6 but none is installed. You must install peer dependencies yourself. npm install ...
Read more >conflicting peer dependency: jasmine-core@4.4.0 - You.com
The easiest solution is to run npm install with the --legacy-peer-deps flag. In theory, that may result in some incompatibility issues with peer...
Read more >Upgrade Angular App to latest version - Medium
0 <8" (extended), would install "11.1.1"). Package "codelyzer" has an incompatible peer dependency to "@angular/compiler" (requires ">=2.3.1 < ...
Read more >Material Dashboard Angular - Creative Tim
js" (requires "~0.8.26", would install "0.9.1") Package "@angular/compiler-cli" has an incompatible peer dependency to "typescript" (requires ">=3.1.1 <3.3", ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@billfranklin Sorry, I mistook ng-update with https://www.npmjs.com/package/npm-check-updates. Yes, this is a bug. ng-update should update typescript to latest supported version. But I don’t think it will be resolved soon: https://github.com/angular/angular-cli/issues/11138#issuecomment-395494996.
@dalu You can do:
ng update --all --forceand thennpm i typescript@3.1.6(or even better:npm i typescript@"<3.2")EVERY SINGLE TIME