Run the below command to install a npm package globally:
npm install -g <package name>
Example:
npm install -g npm-check-updates
Run the below command to install a npm package globally:
npm install -g <package name>
Example:
npm install -g npm-check-updates