1.今天打包项目的时候报了一下错误,发现是内存溢出了Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory;
2.执行:setx NODE_OPTIONS --max_old_space_size=4096 设置下
3.执行npm run build 再次打包成功。
1.今天打包项目的时候报了一下错误,发现是内存溢出了Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory;
2.执行:setx NODE_OPTIONS --max_old_space_size=4096 设置下
3.执行npm run build 再次打包成功。