how to list all installed modules using npm in node js code example Example: node js list all installed modules npm -g ls --depth=0