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