I used to install packages globally (
npm i -g truffle anyone?) but have now moved to installing locally as I often need different versions between projects.
npx is a npm package runner which is installed along with npm.
This allows me to run local packages easily and even run packages I haven’t installed.
I also did a check of what I had installed globally.
npm list -g --depth 0
I then uninstalled everything I didn’t absolutely need globally, which was pretty much everything.
Would appreciate thoughts on local vs global.