Is there an easy way to obtain a count of installed npm packages, both global and local to an application?
For example, after running create-react-app
[1], I get screens-full of packages and dependencies installed when I enter the npm ls
command.
How to find a count ("cardinality") of said packages and dependencies eludes me. Tyvm, Keith :^)
References:
Try:
npm ls --parseable | wc -l
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