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

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-11
  • 2022-12-23
  • 2022-12-23
  • 2021-09-03
  • 2021-12-26
  • 2021-07-16
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-03-30
  • 2021-12-01
  • 2021-08-03
  • 2021-10-31
相关资源
相似解决方案