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