javascript - node_modules is extremely large, and many dependencies that are not included in package.json are also installed.
迷茫
迷茫 2017-06-20 10:06:54
0
2
1072

I first wrote the dependencies of package.json and then ran cnpm install
After running, node_modules is very large, and many unwritten dependencies are also loaded. Is there any way to press package? Does .json need to be loaded?

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(2)
刘奇

The dependencies in

package.json also depend on other packages. Of course, they all need to be installed, otherwise your dependencies will not be used

ringa_lee

The package you depend on in package.json also has its own dependencies.

Your package.json:

"a":"^1.0.1"

a’s package.json:

"b":"^2.1.1"

b is not in your package.json, but it must be downloaded, otherwise a will not work properly.

b probably also depends on other packages.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template