Versions of @angular/compiler-cli and typescript could not be determined

前端 未结 11 2531
耶瑟儿~
耶瑟儿~ 2020-12-28 14:35

I have installed Angular/cli and then try to run command ng serve then below error is throwing. I have tried lot of thing like uninstall angular/cli, npm cache clean, etc

11条回答
  •  粉色の甜心
    2020-12-28 14:59

    In the case of deployment, it is a good idea to add a preinstall script to address these gaps in dependencies:

    "preinstall": "npm install @angular/cli @angular/compiler-cli typescript"
    

提交回复
热议问题