Added -g flag to install instructions if preferGlobal is set

Added the -g flag to install instructions on the package page if preferGlobal is set in package.json
See https://npmjs.org/doc/json.html#preferGlobal