mac install node and npm code example
Example 1: install node mac
brew install node #Homebrew required
Example 2: install npm mac
brew install node
Example 3: how to run node js on mac
node test-node.js
brew install node #Homebrew required
brew install node
node test-node.js