Prerequisites
Couple of prerequisites:
- XCode: if needed, install it through Apple Store
- Homebrew: it’s a package manager for OSX, simple and efficient. In a terminal:
ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
Install Node and npm
Once Homebrew is installed, it is very simple:
brew install node
That’s all….
If needed, to upgrade/update node
# update Homebrew brew update # update Node / Npm brew upgrade node
and finally, to check current versions of Node JS/npm
node -v npm -v
— END —