我修改了后台系统的前端代码,需要上线在做代码打包的时候出现这个问题该怎么解决。
node : v20.15.0
npm : 10.7.0
还需要安装python吗
PS E:\work\beishuyiwxapi829\template\admin> npm run build
> from-crmeb-admin@5.2.2 build
> vue-cli-service build --mode=production
WARN You have set both "baseUrl" and "publicPath" in vue.config.js, in this case, "baseUrl" will be ignored in favor of "publicPath".
Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme
- Building for production...Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme
...................
..................
....................
最后出现这个
system_static/js/chunk-f9e0e330.f1a443e5.js from Terser
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:79:19)
at Object.createHash (node:crypto:139:10)
at E:\work\beishuyiwxapi829\template\admin\node_modules\terser-webpack-plugin\dist\index.js:217:37
at Array.forEach (
at TerserPlugin.optimizeFn (E:\work\beishuyiwxapi829\template\admin\node_modules\terser-webpack-plugin\dist\index.js:160:259)
at _next0 (eval at create (E:\work\beishuyiwxapi829\template\admin\node_modules\tapable\lib\HookCodeFactory.js:33:10),
at eval (eval at create (E:\work\beishuyiwxapi829\template\admin\node_modules\tapable\lib\HookCodeFactory.js:33:10),
at E:\work\beishuyiwxapi829\template\admin\node_modules\uglifyjs-webpack-plugin\dist\index.js:321:9
at step (E:\work\beishuyiwxapi829\template\admin\node_modules\uglifyjs-webpack-plugin\dist\TaskRunner.js:85:9)
at done (E:\work\beishuyiwxapi829\template\admin\node_modules\uglifyjs-webpack-plugin\dist\TaskRunner.js:96:30)
at E:\work\beishuyiwxapi829\template\admin\node_modules\uglifyjs-webpack-plugin\dist\TaskRunner.js:101:13
at E:\work\beishuyiwxapi829\template\admin\node_modules\worker-farm\lib\farm.js:199:19
at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
error
有没有谁知道怎么解决呢