installl npm code example
Example 1: install latest npm
npm install npm@latest -g
Example 2: intall npm
npm install -g npm
Example 3: install npm mac
brew install node
npm install npm@latest -g
npm install -g npm
brew install node