list all installed packages python code example Example: npm list all installed packages npm list -g --depth=0