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

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

    You don't need to set any path. Follow the below step to resolve the problem-

    Step 1- go to

    C:\Users\user\AppData\Roaming and delete npm, npm-update and npm-cache folder
    

    Step 2- run

    npm install -g @angular/cli@yourangularversion again.
    

提交回复
热议问题