I recently ran into a situation where a colleague of mine installed AWS CDK globally But what's wrong with that? In the post, I discuss the issues that can arise from this common practice.
https://medium.com/@jolodev/dont-run-npm-install-g-465ede5a7ddc