1
1
123qwe2016-04-18 21:06:38
Node.js
123qwe, 2016-04-18 21:06:38

How to install modules from npm?

"dependencies": {
    "jquery": "^2.2.3",
    "normalize.css": "^4.1.1"
  },
  "devDependencies": {
    "browser-sync": "^2.12.3"
  }
}
Here is my package.json config.
I deleted the node_modules folder and when I hit npm install it installs 300+ different modules that I don't need.
And in theory, only what is in the config should be installed.
How to fix it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Bogachev, 2016-04-18
@Yonghwa

You use browser-sync as a dependency in your project, it itself has dependencies which in turn have their own dependencies which in turn...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question