Angular CLI Error path and code EEXIST

前端 未结 2 1603
礼貌的吻别
礼貌的吻别 2021-01-12 05:52

I first installed npm and made sure it was up to date. Then I tried installing angular but I was faced with errors

~ kode$ sudo npm install -g @angular/cli

         


        
2条回答
  •  北恋
    北恋 (楼主)
    2021-01-12 06:28

    You need to delete ng folder from /usr/local/bin
    Install again

     sudo rm -rf /usr/local/bin/ng 
     sudo npm i -g angular/cli 

提交回复
热议问题