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

前端 未结 11 2528
耶瑟儿~
耶瑟儿~ 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:58

    I came across this issue when I was installing npm dependencies on Jenkins. I had @angular/compiler-cli in devDependencies and typescript in dependencies and NODE_ENV=production in the environment.

    I tried NODE_ENV=development npm install and it worked for me.

    For more details see this : https://github.com/angular/angular-cli/issues/8407

提交回复
热议问题