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

前端 未结 6 929
野性不改
野性不改 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 15:57

    I'd recommend that you install Node.js using a version manager such as nvm. This way, you kill two birds with one stone:

    • First, you can manage multiple versions of Node.js on the same machine (which you will want to do sooner or later).
    • Second, you get around all the access problems you experience when installing Node.js without it. At least that's my experience.

    Basically it's as easy as running

    $ curl https://raw.githubusercontent.com/creationix/nvm/v0.24.1/install.sh | bash
    

    from the command line.

提交回复
热议问题