npm throws EACCES error on installation of Angular CLI

后端 未结 9 610
没有蜡笔的小新
没有蜡笔的小新 2020-12-11 15:34

I am unable to install Angular Cli globally through npm. I keep getting this error when I run npm install -g @angular/cli on macOS:

npm ERR! nod         


        
9条回答
  •  余生分开走
    2020-12-11 15:46

    I fixed the issue by running

    sudo npm install -g @angular/cli

    After prompting for password enter it.

    Then you will be able to install.

提交回复
热议问题