added -g flag to install instructions if preferGlobal is set in package.json

See https://npmjs.org/doc/json.html#preferGlobal