1.今天打包项目的时候报了一下错误,发现是内存溢出了Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory;

2.执行:setx NODE_OPTIONS --max_old_space_size=4096 设置下

npm打包报内存溢出Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memor

3.执行npm run build 再次打包成功。

npm打包报内存溢出Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memor

相关文章: