NPM won't install any package on Mac. New, clean build. `EACCES` & other errors

前端 未结 6 931
野性不改
野性不改 2021-02-07 15:32

I\'ve just rebuild my Mavericks (Mac OS X Version 9.4) machine from scratch. I am the administrator and only user of this machine.

  • I installed Git via their
6条回答
  •  灰色年华
    2021-02-07 16:01

    (SOLUTION ANSWER)

    Hi Guys,

    I had the same problem on my MacBook Pro 2018. After trie installing any dependency globally (with "-g" or "--global") I did receive an issue "EACCES" error (it's about permissions)

    You could simply add "sudo" before your commands what will force it.

    For example:

    sudo npm install gulp -g
    

    or

    sudo npm install browser-sync -g
    

    Enjoy!

提交回复
热议问题