Set npm `preferGlobal` flag