I decide. Sometimes global and mostly local. Thinks like ts-node, ava, typescript are global and local. Than other thinks like expressjs, body-parser are always local.
So when a package has global use I install it global and when not I install it lokal.