vue运行或打包报错Ineffective mark-compacts near heap limit Allocation failed-JavaScript heap out of memory 原因:项目大,启动或打包会抛出内存溢出,需要扩展node服务器内存 解决方法: 快捷键Win+R 打开运行窗口,运行 setx NODE_OPTIONS --max_old_space_size=4096 setx NODE_OPTIONS --max_old_space_size=4096 //这个数字可以大些