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

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

    For install with zsh and Homebrew:

    brew install nvm
    

    Then Add the following to ~/.zshrc or your desired shell configuration file:

    export NVM_DIR="$HOME/.nvm"
    . "/usr/local/opt/nvm/nvm.sh"
    

    Then install a node version and use it.

    nvm install 7.10.1
    nvm use 7.10.1
    

提交回复
热议问题