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
990

I first wrote the dependencies of package.json and then rancnpm 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.jsonalso 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 inpackage.jsonalso has its own dependencies.

    Yourpackage.json:

    "a":"^1.0.1"

    a’spackage.json:

    "b":"^2.1.1"

    bis not in yourpackage.json, but it must be downloaded, otherwiseawill not work properly.

    bprobably also depends on other packages.

      Latest Downloads
      More>
      Web Effects
      Website Source Code
      Website Materials
      Front End Template
      About us Disclaimer Sitemap
      php.cn:Public welfare online PHP training,Help PHP learners grow quickly!