npm install --dry-run

Category: Node.js & npm/yarn

npm install --dry-run

Preview an install without changing anything

Reports what npm would download, add, or remove without writing to node_modules or package.json. The fastest way to check how a dependency change would affect the tree. Pair with --json for machine-readable output.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.