The Angular Compiler requires TypeScript >=2.7.2 and <2.8.0 but 2.8.3 was found instead

前端 未结 9 1503
失恋的感觉
失恋的感觉 2020-12-24 05:25

I starting getting this error on my Angular app:

The Angular Compiler requires TypeScript >=2.7.2 and <2.8.0 but 2.8.3 was found instead

9条回答
  •  清酒与你
    2020-12-24 06:03

    To upgrade, run the following commands in the terminal.

    • Install the latest version of NPM

      npm install npm@latest -g
      
    • Run audit

      npm audit  
      
    • Update the NPM

      npm update
      
    • Run the NPM run script.

      npm start
      

    Now your compiler is ready.

提交回复
热议问题