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",

 

posted @ 2021-05-08 10:38  煎饼馃子  阅读(3603)  评论(0编辑  收藏  举报