how to tell what is installed globally with npm code example Example: npm list global packages npm list -g --depth 0