In a node.js script that I\'m working on, I want to print all node.js modules (installed using npm) to the command line. How can I do this?
console.log(__fil
If you are only interested in the packages installed globally without the full TREE then:
npm -g ls --depth=0
or locally (omit -g) :
npm ls --depth=0