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