1// 1. Install Homebrew on a Mac by first installing Xcode
2// 2. Install Xcode at
3 https://apps.apple.com/us/app/xcode/id497799835?ls=1&mt=12
4// 3. Open the Terminal app.
5// 4. Type:
6 ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
7// 5. Open the Terminal app and type:
8 brew update
9// This updates Homebrew with a list of the latest version of Node.
10// 6. Type:
11 brew install node
12// 7. Sit back and wait. Homebrew has to download some files and install them. But that’s it.
13// 8. Test Node. To see if Node is installed, type:
14 node -v
15// in Terminal. This should print the version number so you’ll see something like this v0.10.31.
16// 9. Test NPM. To see if NPM is installed, type:
17 npm -v
18// in Terminal. This should print the version number so you’ll see something like this 1.4.27
19// 10. Test node
20 node test-node.js