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