Installing NVM/Node on latest version of OSX
Written by Mohan pd. on

If you’re new to Javascript and NodeJS and looking for setting up the development environment then this guide s for you. Follow along the guide to install Node and Yarn which is required for almost any Javascript project.
Install Git/Homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" brew doctor brew install git \
Install NVM
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
If the install command produces an error asking for a .profile
or .bashrc
run touch ~./profile
then run the install command again Once this is complete run
command -v nvm
and restart your terminal.
Install Yarn
Yarn is a more reliable and faster package manager than NPM, use it instead of
npm install
npm i -g yarn
Comments