npm list globally installed packages code example Example: list npm packages installed globally npm list -g --depth 0