- You need to have installed terminal and homebrew.
In the terminal,
- type:
brew update
(to update homebrew with the latest version of Node) - type
brew install node
(homebrew will download some files, so don't interrup the process until it is done)
To make sure everything works good, type in the terminal:
node -v
(to check if Node is installed properly; you should see the version number)npm -v
(to check if NPM is installed properly; you should see the version number)