Answer the question
In order to leave comments, you need to log in
How to force NPM not to include dependencies multiple times?
As a result of executing the command npm install
, a directory with the package is obtained, which contains all its dependencies. Moreover, absolutely all dependencies are included, even if they are already installed globally. And sometimes one package is included in the list of dependencies several times:
user$ npm ls -g
/usr/local/lib
├─┬ [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected]
│ │ └── [email protected]
Answer the question
In order to leave comments, you need to log in
even if they are already installed globally
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question