To check for all globally installed packages and its dependencies, run the npm list command followed by the -g flag. This above command prints the all globally installed packages in tree view.
On Unix systems they are normally placed in /usr/local/lib/node or /usr/local/lib/node_modules when installed globally. If you set the NODE_PATH environment variable to this path, the modules can be found by node.
You're looking for https://docs.npmjs.com/cli/ls
For example, to see which packages depend on contextify
you can run:
npm ls contextify
[email protected] /home/zorbash/some-project
└─┬ [email protected]
└─┬ [email protected]
└── [email protected]
You can use https://www.npmjs.com/package/npm-dependents to find dependents that are not installed.
Update: I see the package is broken, but it still may be a good starting point where the author points out a place where it may be breaking: https://github.com/davidmarkclements/npm-dependents/issues/5#issuecomment-451926479
In the meantime, you may want to just use the "Dependents" tab on the individual npm project pages.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With