How to Check if NPM Package is Installed Locally or Globally

How to Check if NPM Package is Installed Locally or Globally