List all globally installed npm packages May 30, 2024 1 min read nodejs npm npm ls --depth=0 -global The --depth=0 flag prevents showing the entire dependency tree and only lists top-level packages.