check what is installed globally npm code example Example: npm list global packages npm list -g --depth 0