Node环境内存溢出问题

276 阅读1分钟

node原始的内存很小512M,当build node_module 文件包大于512M,超出内存。


需要在package.json build时 添加 node --max_old_space_size=1024