list node packages installed code example Example 1: npm list all installed packages npm list -g --depth=0 Example 2: node js list all installed modules npm -g ls --depth=0