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