标准版5.2.1的template/admin即管理端在node版本18.18.2、npm版本9.8.1环境下报错:
system_static/js/chunk-95f03830.243e3090.js from Terser
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:69:19)
at Object.createHash (node:crypto:133:10)
at /Users/jlf/php_pro/web1-template/admin/node_modules/terser-webpack-plugin/dist/index.js:217:37
at Array.forEach (<anonymous>)
at TerserPlugin.optimizeFn (/Users/jlf/php_pro/web1-template/admin/node_modules/terser-webpack-plugin/dist/index.js:160:259)
at _next0 (eval at create (/Users/jlf/php_pro/web1-template/admin/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:8:1)
at eval (eval at create (/Users/jlf/php_pro/web1-template/admin/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:21:1)
at /Users/jlf/php_pro/web1-template/admin/node_modules/uglifyjs-webpack-plugin/dist/index.js:321:9
at step (/Users/jlf/php_pro/web1-template/admin/node_modules/uglifyjs-webpack-plugin/dist/TaskRunner.js:85:9)
at done (/Users/jlf/php_pro/web1-template/admin/node_modules/uglifyjs-webpack-plugin/dist/TaskRunner.js:96:30)
at /Users/jlf/php_pro/web1-template/admin/node_modules/uglifyjs-webpack-plugin/dist/TaskRunner.js:101:13
at /Users/jlf/php_pro/web1-template/admin/node_modules/worker-farm/lib/farm.js:199:19
at process.processTicksAndRejections (node:internal/process/task_queues:77:11)