Support dumping just one part of config
don't bother trying to fetch invalid pkg names
Handle a few 'property of null' errors
throw when we get invalid json from registry
Added -g flag to install intructions

If preferGlobal is set in package.json, add -g flag to install instructions