What is the suggested way to install brew, node.js, io.js, nvm, npm on OS X?

后端 未结 9 1195
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-30 15:51

I am trying to use homebrew as much as possible. What\'s the suggested way to install the following on OS X?

  • node.js
  • io.js
  • nvm
  • npm
9条回答
  •  囚心锁ツ
    2020-11-30 16:48

    Here's what I do:

    curl https://raw.githubusercontent.com/creationix/nvm/v0.20.0/install.sh | bash
    cd / && . ~/.nvm/nvm.sh && nvm install 0.10.35
    . ~/.nvm/nvm.sh && nvm alias default 0.10.35
    

    No Homebrew for this one.

    nvm soon will support io.js, but not at time of posting: https://github.com/creationix/nvm/issues/590

    Then install everything else, per-project, with a package.json and npm install.

提交回复
热议问题