kurodakazumichi / issues

0 stars 0 forks source link

【Node.js】バージョン管理(Mac) #45

Open kurodakazumichi opened 5 years ago

kurodakazumichi commented 5 years ago

Macでnode.js使うならどの構成がいいの?

kurodakazumichi commented 5 years ago
  1. homebrew入れた
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  1. nodebrew入れた
brew install nodebrew
  1. 環境パス設定した
echo 'export PATH=$HOME/.nodebrew/current/bin:$PATH' >> ~/.bash_profile
  1. nodebrewのフォルダを準備した

    mkdir -p ~/.nodebrew/src
  2. node.js入れた

    nodebrew install-binary latest
  3. 使用するバージョンを設定した

    nodebrew use v10.9.0
  4. terminalを再起動した