D
D
Damir Gabdrakhimov2017-02-19 09:41:44
npm
Damir Gabdrakhimov, 2017-02-19 09:41:44

Why are there so many directories inside node_modules?

Good afternoon, I have not worked with NPM for a long time , I recently decided to make a project on Gulp .
I placed the file in the project folder: package.json
I typed the command: npm up
And I was surprised to find a huge pile of 40Mb folders in the created node_modules folder, although in theory only 4 module folders should have appeared there. see the picture below
So I think it's a glitch, if it's after the update. Did I do everything right?
package.json file code

{
  "name": "site2",
  "version": "1.0.0",
  "description": "",
  "main": "gulpfile.js",
  "dependencies": {
    "gulp-clean-css": "^2.0.13",
    "browser-sync": "^2.17.5",
    "gulp": "^3.9.1",
    "gulp-autoprefixer": "^3.1.1"
  },
  "devDependencies": {},
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "",
  "license": "ISC"
}

f05ee29496fd4db498c3078797e686a3.pngf5e409175cd94297bcbcb8730799cf05.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aves, 2017-02-19
@Aves

npm behavior has changed since version 3 https://docs.npmjs.com/how-npm-works/npm3

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question