check which node packages are installed globally code example Example: npm list global packages npm list -g --depth 0