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

前端 未结 19 1530
轻奢々
轻奢々 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:14

    No need to uninstall angular/cli.

    1. You just need to make sure the PATH to npm is in your environment PATH and at the top.

    C:\Users\yourusername\AppData\Roaming\npm

    1. Then close whatever git or command client your using and run ng-v again and should work

提交回复
热议问题