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

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

    note: you may lose values once system restarts.

    You can also add system environment variables without Admin rights in Windows 10.

    now don't restart, close any opened cmd or powershell, reopen cmd and test by ng version command if you see this it is confirmed working fine.

    hope this helps

提交回复
热议问题