ng: command not found

前端 未结 11 1488
伪装坚强ぢ
伪装坚强ぢ 2020-12-21 00:22

I am trying to run ng build in my project folder, but I get the following response:

bash: ng: command not found

Wha

11条回答
  •  粉色の甜心
    2020-12-21 00:51

    If you have installed the dependencies locally and need to refer those packages instead of global. use npx before the the command eg: npx ng build refers to the locally installed package. ng build refers to the global package.

提交回复
热议问题