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?
The dependencies in
package.json
also depend on other packages. Of course, they all need to be installed, otherwise your dependencies will not be usedThe package you depend on in
package.json
also has its own dependencies.Your
package.json
:a
’spackage.json
:b
is not in yourpackage.json
, but it must be downloaded, otherwisea
will not work properly.b
probably also depends on other packages.