open-hand / choerodon-front-boot

Choerodon front boot is a toolkit about front end package management, startup, compilation. It is mainly used to provide custom some configurations file to create a project of React that can be modified to some extent.
https://choerodon.io
Apache License 2.0
27 stars 27 forks source link

打包的时候内存溢出的问题 #2

Closed zhangwenan closed 5 years ago

zhangwenan commented 5 years ago

以下这个项目,也存在打包的时候溢出的问题。 https://github.com/choerodon/choerodon-front

我将package.json中的依赖版本从0.10.4升级成 "choerodon-front-boot": "0.10.5"

重新npm install, 再npm start,就会报错。

zhangwenan commented 5 years ago

@binjie09

binjie09 commented 5 years ago

需要确保有至少4G以上剩余内存,子模块中不能有安装的node_modules,已经在start命令中把node堆栈内存调整到了4096M,理论上应该不会溢出了。