Find out why a NPM package is installed
1 July 2022 (Updated 12 July 2022)
npm why <package
For example, running npm explain glob
can output something like:
glob@7.1.6
node_modules/glob
glob@"^7.1.4" from the root project
glob@7.1.1 dev
node_modules/tacks/node_modules/glob
glob@"^7.0.5" from rimraf@2.6.2
node_modules/tacks/node_modules/rimraf
rimraf@"^2.6.2" from tacks@1.3.0
node_modules/tacks
dev tacks@"^1.3.0" from the root project
Tagged:
NPM
Thanks for your comment 🙏. Once it's approved, it will appear here.
Leave a comment