'ng' is not recognized as an internal or external command, operable program or batch file

前端 未结 19 1323
轻奢々
轻奢々 2021-01-31 01:31

I tried running npm install -g angular-cli

I also tried adding it to the Enviorment Variables under PATH: (C:\\Users\\Administrator\\AppData\\Roaming\\npm\\node

19条回答
  •  粉色の甜心
    2021-01-31 02:21

    Short answer:

    Just install the latest version of nodejs and then restart your system.

    more description:

    It's related to Environment variables in your system at least as far as I know, you can make changes in path variable in your system as others talked about it in the current thread but the easiest way to solve this is installing nodejs!

提交回复
热议问题