执行npm相关命令时,报错:
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
如图:
解决方案:
全局安装increase-memory-limit
命令行cmd dos窗口运行:cnpm install -g increase-memory-limit
进入项目文件夹,运行:increase-memory-limit
暂可解决问题。