解决vue项目内存溢出问题:Reached heap limit Allocation failed - JavaScript heap out of memory
方法一
利用cross-env increase-memory-limit
npm install cross-env increase-memory-limit
package中配置
"scripts": {
"limit": "cross-env LIMIT=8192 increase-memory-limit"
}
项目中运行increase-memory-limit命令
increase-memory-limit
方法二
如若不成功,请移步北风几吹夏尝试方式二