pm config list // view basic configuration
npm config list -l // View all configuration
npm installed locally and globally installed What is the difference?
npm install grunt // local installation, sucked module is downloaded to the directory where the current command line.
npm install -g grunt // global installation, download and install the module will be [] in the global directory;
How to get the default directory npm globally installed?
npm config get prefix
How npm set the global default installation directory?
npm config set prefix “directory”