Creating an optimized production build...
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:71:19)
    at Object.createHash (node:crypto:133:10)
    at module.exports (/Users/laurdawn/Downloads/auction-admin-master/node_modules/webpack/lib/util/createHash.js:90:53)
    at NormalModule._initBuildHash (/Users/laurdawn/Downloads/auction-admin-master/node_modules/webpack/lib/NormalModule.js:386:16)
    at handleParseError (/Users/laurdawn/Downloads/auction-admin-master/node_modules/webpack/lib/NormalModule.js:434:10)
    at /Users/laurdawn/Downloads/auction-admin-master/node_modules/webpack/lib/NormalModule.js:466:5
    at /Users/laurdawn/Downloads/auction-admin-master/node_modules/webpack/lib/NormalModule.js:327:12
    at /Users/laurdawn/Downloads/auction-admin-master/node_modules/loader-runner/lib/LoaderRunner.js:373:3
    at iterateNormalLoaders (/Users/laurdawn/Downloads/auction-admin-master/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
    at iterateNormalLoaders (/Users/laurdawn/Downloads/auction-admin-master/node_modules/loader-runner/lib/LoaderRunner.js:221:10)
    at /Users/laurdawn/Downloads/auction-admin-master/node_modules/loader-runner/lib/LoaderRunner.js:236:3
    at runSyncOrAsync (/Users/laurdawn/Downloads/auction-admin-master/node_modules/loader-runner/lib/LoaderRunner.js:130:11)
    at iterateNormalLoaders (/Users/laurdawn/Downloads/auction-admin-master/node_modules/loader-runner/lib/LoaderRunner.js:232:2)
    at Array.<anonymous> (/Users/laurdawn/Downloads/auction-admin-master/node_modules/loader-runner/lib/LoaderRunner.js:205:4)
    at Storage.finished (/Users/laurdawn/Downloads/auction-admin-master/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:55:16)
    at /Users/laurdawn/Downloads/auction-admin-master/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:91:9
/Users/laurdawn/Downloads/auction-admin-master/scripts/build.js:11
  throw err;
  ^

Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:71:19)
    at Object.createHash (node:crypto:133:10)
    at module.exports (/Users/laurdawn/Downloads/auction-admin-master/node_modules/webpack/lib/util/createHash.js:90:53)
    at NormalModule._initBuildHash (/Users/laurdawn/Downloads/auction-admin-master/node_modules/webpack/lib/NormalModule.js:386:16)
    at /Users/laurdawn/Downloads/auction-admin-master/node_modules/webpack/lib/NormalModule.js:418:10
    at /Users/laurdawn/Downloads/auction-admin-master/node_modules/webpack/lib/NormalModule.js:293:13
    at /Users/laurdawn/Downloads/auction-admin-master/node_modules/loader-runner/lib/LoaderRunner.js:367:11
    at /Users/laurdawn/Downloads/auction-admin-master/node_modules/loader-runner/lib/LoaderRunner.js:233:18
    at context.callback (/Users/laurdawn/Downloads/auction-admin-master/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
    at /Users/laurdawn/Downloads/auction-admin-master/node_modules/babel-loader/lib/index.js:51:103 {
  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

Node.js v18.16.0

mac执行命令npm run build报这个错怎么解决