【问题标题】:yeoman generator creates 200+ MB of node_modules, is that normal?yeoman 生成器创建 200+ MB 的 node_modules,这正常吗?
【发布时间】:2016-01-07 04:51:20
【问题描述】:

跑步正常吗 yo angular 在 node_modules 文件夹中创建超过 200MB? 这就是为什么根据我当时的互联网连接运行发电机需要大约 15 分钟或更长时间的原因吗?

18:35 $ du -h|grep M|sort -n -r|head
216M    .
211M    ./node_modules
63M ./node_modules/cdnjs-cdn-data/external
63M ./node_modules/cdnjs-cdn-data
30M ./node_modules/bower
29M ./node_modules/bower/node_modules
6.2M    ./node_modules/caniuse-db
5.1M    ./node_modules/rx
4.8M    ./node_modules/jshint
4.4M    ./bower_components

【问题讨论】:

    标签: angularjs npm yeoman


    【解决方案1】:

    node_modules 目录不包含生成的代码。它甚至不是针对约曼的。它包含由npm 下载的nodejs 库和工具的源代码和二进制文件。是的 - 它通常很重,下载可能需要一些时间。

    所有依赖项都在模板的 package.json 文件中定义(以及任何其他使用 npm 的项目)。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多