简体   繁体   中英

Why do I get a lot of packages when I run`npm install`?

这些是很多包

这是我的package.json

I wonder if it's about my global package.json or something?

npm install command will install packages listed in devdependencies as well as dependencies. You are having 5 modules in devdependencies they will be installed. More then this these 5 modules will also have their own dependencies so they will also be installed.

For example if " mocha " will have 10 other modules listed in devdependencies/dependencies then this 10 modules will also be installed.

Hope this will help you.

when you run npm install, it installs all the packages listed in package.json

Hope it helps!

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM