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