Home  >  Article  >  Backend Development  >  为何java、haskell、python、erlang win下的安装包很大,少则几十,多则上百兆, 而node.js很小,只有几兆?

为何java、haskell、python、erlang win下的安装包很大,少则几十,多则上百兆, 而node.js很小,只有几兆?

WBOY
WBOYOriginal
2016-06-06 16:23:022164browse

回复内容:

你用Node.js,要是不用npm拉几十上百兆东西下来,能用? python安装包貌似也才十几m的样子吧 刚好昨天才开始用node,安装的时候,只有5m大小,觉得好轻量级的。
然后开始写代码的时候,你难道没有一直npm去download各种package?
一个项目,少说npm下来的包也有十多M了,不是node小,而是他有需求的时候,才会去download你所需要的库,也许这就是这么多人喜欢他的原因把。
<code class="language-text">$ ls -lh java
-rwxr-xr-x  1 root  wheel    53K Dec 16  2013 java
$ ls -lh python2.7
-rwxr-xr-x  1  xxx  staff   8.6K Jul  3 06:37 python2.7
$ du -shc node_modules/
 30M	node_modules/
 30M	total
</code>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn