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

前端 未结 6 941
野性不改
野性不改 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:06

    By the way, I solved this issue by changing the owner of /usr/local to be myself, in order to allow NPM to modules in its default location without further requiring sudo for each package's installation.

    sudo chown -R `whoami` /usr/local
    

提交回复
热议问题