install npm and node code example Example 1: intall npm npm install -g npm Example 2: install npm mac brew install node