npm run build 打包失败的问题,error: call retries were exceeded
问题:
node内存溢出产生的问题
引用:
https://blog.csdn.net/wangzl1163/article/details/94600857
https://blog.csdn.net/genius_yym/article/details/80854729
解决方法:
在package.json脚本中加入
"build": "node --max_old_space_size=4096 node_modules/@vue/cli-service/bin/vue-cli-service.js build",