Software: Apache. PHP/7.3.33 uname -a: Linux acloudg.aryanict.com 4.18.0-513.9.1.lve.el8.x86_64 #1 SMP Mon Dec 4 15:01:22 UTC uid=1095(katebhospital) gid=1098(katebhospital) groups=1098(katebhospital) Safe-mode: OFF (not secure) /opt/alt/alt-nodejs12/root/usr/lib/node_modules/npm/docs/public/cli-commands/npm-dedupe/ drwxr-xr-x |
Viewing file: Select action/file-type: npm dedupeReduce duplicationSynopsis
DescriptionSearches the local package tree and attempts to simplify the overall structure by moving dependencies further up the tree, where they can be more effectively shared by multiple dependent packages. For example, consider this dependency graph:
In this case,
Because of the hierarchical nature of node's module lookup, b and d will both get their dependency met by the single c package at the root level of the tree. The deduplication algorithm walks the tree, moving each dependency as far up in the tree as possible, even if duplicates are not found. This will result in both a flat and deduplicated tree. If a suitable version exists at the target location in the tree already, then it will be left untouched, but the other duplicates will be deleted. Arguments are ignored. Dedupe always acts on the entire tree. Modules Note that this operation transforms the dependency tree, but will never result in new modules being installed. See Also👀 Found a typo? Let us know! The current stable version of npm is here. To upgrade, run: To report bugs or submit feature requests for the docs, please post here. Submit npm issues here. |
:: Command execute :: | |
--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0984 ]-- |