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