install npm in windows cmd code example Example 1: intall npm npm install -g npm Example 2: install npm mac brew install node