Setting preferGlobal in package.json to false.