Open marcialwushu opened 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
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
ERROR in The Angular Compiler requires TypeScript
I am getting this error