报错
ERROR error during build: 20:28:39
AggregateError
at internalConnectMultiple (node:net:1114:18)
at afterConnectMultiple (node:net:1667:5)
F:apps\client:
ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL dcp-client@ build: `pnpm cross-env NODE_ENV=production vite build`
Exit status 1
现象:
打包有时成功,有时失败
分析:
1. 网络波动的原因(不好验证)
2. 把打包后的dist文件删除,再次打包就成功了
结论:
打包前要先删除已打包的dist文件夹