Angular CLI Error path and code EEXIST

前端 未结 2 1602
礼貌的吻别
礼貌的吻别 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 
    0 讨论(0)
  • 2021-01-12 06:35

    I was having the same issue as you but I found that if I went to the /usr/local/bin folder and erased the ng file then reinstalled angular it worked.

    If you already tried to install angular follow this the uninstall directions here https://github.com/angular/angular-cli/wiki/stories-1.0-update, then erase the ng file then reinstall.

    0 讨论(0)
提交回复
热议问题