enabled preferglobal flag

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