3

We can check local dependencies in the package.json file, but I want to know how to figure out which global packages are installed on my windows machine through npm.

Moby Khan
  • 5,016
  • 3
  • 13
  • 16

1 Answers1

6

I'm guessing you want to check globally installed npm modules. You use

npm list -g

to list all globally installed modules, along with their dependencies. If you just want to list the modules, use this command,

npm list -g --depth=0
Spack Jarrow
  • 330
  • 2
  • 9