关于Angular-cli 进行项目打包时遇到JavaScript heap out of memory内存空间不足的问题时我的一个解决方法

it2026-02-05  0

我的部分环境:

node - 13.3.0npm - 6.13.1angular - 7

我具体遇到的问题: FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory 主要是看到了这里

我的解决方法: 在Terminal终端那里输入 export NODE_OPTIONS=–max_old_space_size=4096

如图 **注:**4096 的数值可以依据自己的具体项目来调整大小

参考: https://github.com/Polymer/pwa-starter-kit/issues/292

最新回复(0)