It is because npm install
is recursive. Let's say your project require the module A
, which itself require the module B
, npm install
will end up installing both.
In short, even if you only used one module in your package.json
, all the modules you see are needed.
Those packages have dependencies which have dependencies of their own. So unless you want to break your application, I wouldn't alter it.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.