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

后端 未结 9 1182
佛祖请我去吃肉
佛祖请我去吃肉 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:27

    I agree with noa -- if you need to have multiple versions of node, io.js then brew is not the appropriate solution.

    You can help beta-test io.js support in nvm: https://github.com/creationix/nvm/pull/616

    If you just want io.js and are not switching versions, then you can install the binary distribution of io.js from https://iojs.org/dist/v1.0.2/iojs-v1.0.2-darwin-x64.tar.gz ; that includes npm and you will not need nvm if you are not switching versions.

    Remember to update npm after installing: sudo npm install -g npm@latest

提交回复
热议问题