enabled preferglobal flag in package.json

https://docs.npmjs.com/files/package.json#preferglobal