Dinna
Dinna

Reputation: 85

NPM install installs dependencies that are not in my package.json

I just added a depedency to my project and did an npm install. However, I get 20 modules in my node_modules folder. Why is this happening? I only need one module.

Upvotes: 0

Views: 58

Answers (1)

Ergwun
Ergwun

Reputation: 12968

In NPM 3, the dependency hierarchy is flat by default, so you are probably seeing your dependency's dependencies.

Upvotes: 1

Related Questions