当前位置: 代码迷 >> 综合 >> vue打包内存溢出解决方案 FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed
  详细解决方案

vue打包内存溢出解决方案 FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed

热度:94   发布时间:2023-10-23 06:00:32.0

执行npm相关命令时,报错:
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
如图:

vue打包内存溢出解决方案 FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed

 解决方案:

全局安装increase-memory-limit

命令行cmd  dos窗口运行:cnpm install -g increase-memory-limit

进入项目文件夹,运行:increase-memory-limit

暂可解决问题。

  相关解决方案