markjiang
markjiang

Reputation: 617

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

these are the many packages

and this is my package.json

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

Upvotes: 0

Views: 568

Answers (2)

maulik sakhare
maulik sakhare

Reputation: 2037

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.

Upvotes: 5

boomcode
boomcode

Reputation: 399

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

Hope it helps!

Upvotes: 0

Related Questions