美文网首页
Nodejs--- Allocation failed - Ja

Nodejs--- Allocation failed - Ja

作者: 晨曦Bai | 来源:发表于2020-05-06 17:43 被阅读0次

https://blog.csdn.net/cen_cs/article/details/81172384

错误原因:

分配不了更多内存

解决方法:

修改启动项目的脚本参数, 就是package.json的scripts标签下指定最大内存限制,就是加参数:max_old_space_size

具体如下:

"start": "node --max_old_space_size=4096 scripts/start.js",

相关文章

网友评论

      本文标题:Nodejs--- Allocation failed - Ja

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