FGF-College-Work / Forum

:beer: Espaço dedicado a discussões e tira dúvida sobre disciplinas e conteúdo tecnológico.
MIT License
13 stars 4 forks source link

ERROR in The Angular Compiler requires TypeScript #156

Open marcialwushu opened 5 years ago

marcialwushu commented 5 years ago

ERROR in The Angular Compiler requires TypeScript

I am getting this error

ERROR in The Angular Compiler requires TypeScript >=3.4.0 and <3.5.0 but 3.5.3 was found instead.
marcialwushu commented 5 years ago

To fix this install the specific typescript version 3.1.6

npm i typescript@3.1.6 --save-dev --save-exact

Worked for me :) I used

npm install typescript@">=3.4.0 and <3.5.0" --save-dev --save-exact 
marcialwushu commented 5 years ago

https://stackoverflow.com/questions/53578372/error-in-the-angular-compiler-requires-typescript-3-1-1-and-3-2-0-but-3-2-1-w

marcialwushu commented 5 years ago
ERROR in The Angular Compiler requires TypeScript >=3.4.0 and <3.5.0 but 2.7.2 was found instead.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! angular-electron@0.0.0 electron: `ng build --base-href ./ && tsc --p electron && electron .`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the angular-electron@0.0.0 electron script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\NAME_USER\AppData\Roaming\npm-cache\_logs\2019-07-16T14_04_52_638Z-debug.log