Moon Light Box

Time is Money

JavaScript - Install NodeJS in MAC OS

| Comments

Step 1. Install nodejs via NVM.

# touch ./.bash_profile
# curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash
# nvm ls-remote 8
# nvm install 8.4.0

Step 2. Install yarn via brew.

# /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# brew install yarn

Step 3. Upgrade old yarn version

# brew upgrade yarn

https://github.com/creationix/nvm