美文网首页
FATAL ERROR: Ineffective mark-co

FATAL ERROR: Ineffective mark-co

作者: ilily | 来源:发表于2020-02-07 09:47 被阅读0次

前言:

最近做的一个项目,拉取代码安装依赖后,npm start 启动编译项目过程中 报javaScript heap out of memory错误,网上的方法试了很多都无法解决问题。最后找到了2种解决方法,下面和大家记录分享一下:

问题:

详细报错内容:
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

image.png

解决方法1:

安装:
npm install -g increase-memory-limit
执行:
increase-memory-limit


image.png

备注:本方法亲测有效;

解决方法2:

参考:https://segmentfault.com/a/1190000010437948基于node的前端项目编译时内存溢出问题

相关文章

网友评论

      本文标题:FATAL ERROR: Ineffective mark-co

      本文链接:https://www.haomeiwen.com/subject/vetmxhtx.html