700字范文,内容丰富有趣,生活中的好帮手!
700字范文 > ng build --prod时报FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed -错误

ng build --prod时报FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed -错误

时间:2022-01-24 08:16:11

相关推荐

ng build --prod时报FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed -错误

ng build时没有问题,但是 ng build --prod就会报以下错误

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation

failed - JavaScript heap out of memory

3月8日 更新解决办法

使用了increase-memory-limit,但是还是没有效果,使用以下命令代替ng build --prod --build-optimizer后,解决问题

node --max_old_space_size=4096 ./node_modules/@angular/cli/bin/ng build --prod --build-optimizer

5月26日

参考/qq_39209832/article/details/88350975 可以解决。

命令行cmd ,dos窗口运行:

npm install -g increase-memory-limit

进入项目文件夹,运行:

increase-memory-limit

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。