Forrest logo
back to the npm tool

npm:modules:install:global

List all globally installed NPM packages
$ npm list -g --depth=0
try on your machine

This command is used to list all the global packages installed on the system along with their dependencies and version numbers.

  • npm list: This command is used to list out the packages on the system.
  • -g: It stands for global installation. This flag tells npm to check for packages installed globally.
  • --depth=0: It tells npm how deep it should look for dependencies. In this case, it will only look at the directly installed packages, not their dependencies.

Overall, this command will give a concise list of all the packages installed globally on the system, without going too deep into the dependency tree.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the npm tool