snippetbashTip
npm find-dupes — Identify duplicate dependencies in `node_modules`. More information: <https://docs.npmjs.com/cli/npm
Viewed 0 times
commandduplicatedependenciesnode_modulescliidentifymorenpm find-dupes
Problem
How to use the
npm find-dupes command: Identify duplicate dependencies in node_modules. More information: <https://docs.npmjs.com/cli/npm-find-dupes/>.Solution
npm find-dupes — Identify duplicate dependencies in node_modules. More information: <https://docs.npmjs.com/cli/npm-find-dupes/>.List all duplicate packages within
node_modules:npm find-dupesInclude
devDependencies in duplicate detection:npm find-dupes --include devList all duplicate instances of a specific package in
node_modules:npm find-dupes {{package_name}}Exclude optional dependencies from duplicate detection:
npm find-dupes --omit optionalSet the logging level for output:
npm find-dupes --loglevel {{silent|error|warn|info|verbose}}Output duplicate information in JSON format:
npm find-dupes --jsonLimit duplicate search to specific scopes:
npm find-dupes --scope {{@scope1,@scope2}}Exclude specific scopes from duplicate detection:
npm find-dupes --omit-scope {{@scope1,@scope2}}Code Snippets
List all duplicate packages within `node_modules`
npm find-dupesInclude `devDependencies` in duplicate detection
npm find-dupes --include devList all duplicate instances of a specific package in `node_modules`
npm find-dupes {{package_name}}Exclude optional dependencies from duplicate detection
npm find-dupes --omit optionalSet the logging level for output
npm find-dupes --loglevel {{silent|error|warn|info|verbose}}Context
tldr-pages: common/npm find-dupes
Revisions (0)
No revisions yet.