Reputation: 41
How to overcome this issue for the already created Angular project? I Would like to use 2.6.2 Typescript
@angular/[email protected] requires typescript@'>=2.4.2 <2.6.0' but 2.6.2 was found instead.
Using this version can result in undefined behaviour and difficult to debug problems.
Please run the following command to install a compatible version of TypeScript.
npm install typescript@'>=2.4.2 <2.6.0'
To disable this warning run "ng set warnings.typescriptMismatch=false".
The "@angular/compiler-cli" package was not properly installed. Error: Error: Cannot find module '@angular/compiler-cli'*
Upvotes: 0
Views: 7251
Reputation: 2708
The issue is clear... your angular CLI version require a Typescript lower version.
You need to downgrade your Typescript version.
In your package.json change :
"typescript": "^2.6.2",
With
"typescript": "^2.4.2",
and run
npm install
Upvotes: 2