PLEASE help us help you by writing a good post!
this is the error:
8:06:35 PM: Error: error:0308010C:digital envelope routines::unsupported
8:06:35 PM: at new Hash (node:internal/crypto/hash:69:19)
8:06:35 PM: at Object.createHash (node:crypto:133:10)
8:06:35 PM: at /opt/build/repo/node_modules/netlify-lambda/node_modules/terser-webpack-plugin/dist/index.js:217:37
8:06:35 PM: at Array.forEach ()
8:06:35 PM: at TerserPlugin.optimizeFn (/opt/build/repo/node_modules/netlify-lambda/node_modules/terser-webpack-plugin/dist/index.js:160:259)
8:06:35 PM: at AsyncSeriesHook.eval [as callAsync] (eval at create (/opt/build/repo/node_modules/netlify-lambda/node_modules/tapable/lib/HookCodeFactory.js:33:10), :7:1)
8:06:35 PM: at AsyncSeriesHook.lazyCompileHook (/opt/build/repo/node_modules/netlify-lambda/node_modules/tapable/lib/Hook.js:154:20)
8:06:35 PM: at /opt/build/repo/node_modules/netlify-lambda/node_modules/webpack/lib/Compilation.js:1409:36
8:06:35 PM: at AsyncSeriesHook.eval [as callAsync] (eval at create (/opt/build/repo/node_modules/netlify-lambda/node_modules/tapable/lib/HookCodeFactory.js:33:10), :6:1)
8:06:35 PM: at AsyncSeriesHook.lazyCompileHook (/opt/build/repo/node_modules/netlify-lambda/node_modules/tapable/lib/Hook.js:154:20)
8:06:35 PM: at /opt/build/repo/node_modules/netlify-lambda/node_modules/webpack/lib/Compilation.js:1405:32
8:06:35 PM: at AsyncSeriesHook.eval [as callAsync] (eval at create (/opt/build/repo/node_modules/netlify-lambda/node_modules/tapable/lib/HookCodeFactory.js:33:10), :6:1)
8:06:35 PM: at AsyncSeriesHook.lazyCompileHook (/opt/build/repo/node_modules/netlify-lambda/node_modules/tapable/lib/Hook.js:154:20)
8:06:35 PM: at Compilation.seal (/opt/build/repo/node_modules/netlify-lambda/node_modules/webpack/lib/Compilation.js:1342:27)
8:06:35 PM: at /opt/build/repo/node_modules/netlify-lambda/node_modules/webpack/lib/Compiler.js:675:18
8:06:35 PM: at /opt/build/repo/node_modules/netlify-lambda/node_modules/webpack/lib/Compilation.js:1261:4
8:06:35 PM: at AsyncSeriesHook.eval [as callAsync] (eval at create (/opt/build/repo/node_modules/netlify-lambda/node_modules/tapable/lib/HookCodeFactory.js:33:10), :24:1)
8:06:35 PM: at AsyncSeriesHook.lazyCompileHook (/opt/build/repo/node_modules/netlify-lambda/node_modules/tapable/lib/Hook.js:154:20)
8:06:35 PM: at Compilation.finish (/opt/build/repo/node_modules/netlify-lambda/node_modules/webpack/lib/Compilation.js:1253:28)
8:06:35 PM: at /opt/build/repo/node_modules/netlify-lambda/node_modules/webpack/lib/Compiler.js:672:17
8:06:35 PM: at eval (eval at create (/opt/build/repo/node_modules/netlify-lambda/node_modules/tapable/lib/HookCodeFactory.js:33:10), :11:1)
8:06:35 PM: at /opt/build/repo/node_modules/netlify-lambda/node_modules/webpack/lib/Compilation.js:1185:12
8:06:35 PM: at /opt/build/repo/node_modules/netlify-lambda/node_modules/webpack/lib/Compilation.js:1097:9
8:06:35 PM: at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
8:06:35 PM: at TerserPlugin.buildError (/opt/build/repo/node_modules/netlify-lambda/node_modules/terser-webpack-plugin/dist/index.js:105:14)
8:06:35 PM: at /opt/build/repo/node_modules/netlify-lambda/node_modules/terser-webpack-plugin/dist/index.js:224:48
8:06:35 PM: at Array.forEach ()
8:06:35 PM: at TerserPlugin.optimizeFn (/opt/build/repo/node_modules/netlify-lambda/node_modules/terser-webpack-plugin/dist/index.js:160:259)
8:06:35 PM: at AsyncSeriesHook.eval [as callAsync] (eval at create (/opt/build/repo/node_modules/netlify-lambda/node_modules/tapable/lib/HookCodeFactory.js:33:10), :7:1)
8:06:35 PM: at AsyncSeriesHook.lazyCompileHook (/opt/build/repo/node_modules/netlify-lambda/node_modules/tapable/lib/Hook.js:154:20)
8:06:35 PM: at /opt/build/repo/node_modules/netlify-lambda/node_modules/webpack/lib/Compilation.js:1409:36
8:06:35 PM: at AsyncSeriesHook.eval [as callAsync] (eval at create (/opt/build/repo/node_modules/netlify-lambda/node_modules/tapable/lib/HookCodeFactory.js:33:10), :6:1)
8:06:35 PM: at AsyncSeriesHook.lazyCompileHook (/opt/build/repo/node_modules/netlify-lambda/node_modules/tapable/lib/Hook.js:154:20)
8:06:35 PM: at /opt/build/repo/node_modules/netlify-lambda/node_modules/webpack/lib/Compilation.js:1405:32
8:06:35 PM: at AsyncSeriesHook.eval [as callAsync] (eval at create (/opt/build/repo/node_modules/netlify-lambda/node_modules/tapable/lib/HookCodeFactory.js:33:10), :6:1)
8:06:35 PM: at AsyncSeriesHook.lazyCompileHook (/opt/build/repo/node_modules/netlify-lambda/node_modules/tapable/lib/Hook.js:154:20)
8:06:35 PM: at Compilation.seal (/opt/build/repo/node_modules/netlify-lambda/node_modules/webpack/lib/Compilation.js:1342:27)
8:06:35 PM: at /opt/build/repo/node_modules/netlify-lambda/node_modules/webpack/lib/Compiler.js:675:18
8:06:35 PM: at /opt/build/repo/node_modules/netlify-lambda/node_modules/webpack/lib/Compilation.js:1261:4
8:06:35 PM: at AsyncSeriesHook.eval [as callAsync] (eval at create (/opt/build/repo/node_modules/netlify-lambda/node_modules/tapable/lib/HookCodeFactory.js:33:10), :24:1)
8:06:35 PM: at AsyncSeriesHook.lazyCompileHook (/opt/build/repo/node_modules/netlify-lambda/node_modules/tapable/lib/Hook.js:154:20)
8:06:35 PM: at Compilation.finish (/opt/build/repo/node_modules/netlify-lambda/node_modules/webpack/lib/Compilation.js:1253:28)
8:06:35 PM: at /opt/build/repo/node_modules/netlify-lambda/node_modules/webpack/lib/Compiler.js:672:17
8:06:35 PM: at eval (eval at create (/opt/build/repo/node_modules/netlify-lambda/node_modules/tapable/lib/HookCodeFactory.js:33:10), :11:1)
8:06:35 PM: at /opt/build/repo/node_modules/netlify-lambda/node_modules/webpack/lib/Compilation.js:1185:12
8:06:35 PM: at /opt/build/repo/node_modules/netlify-lambda/node_modules/webpack/lib/Compilation.js:1097:9
8:06:35 PM: at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
8:06:35 PM: ]
8:06:35 PM:
8:06:35 PM: “build.command” failed
8:06:35 PM: ────────────────────────────────────────────────────────────────
8:06:35 PM:
8:06:35 PM: Error message
8:06:35 PM: Command failed with exit code 1: npm run build
8:06:35 PM:
8:06:35 PM: Error location
8:06:35 PM: In Build command from Netlify app:
8:06:35 PM: npm run build
8:06:35 PM:
8:06:35 PM: Resolved config
8:06:35 PM: build:
8:06:35 PM: command: npm run build
8:06:35 PM: commandOrigin: ui
8:06:35 PM: publish: /opt/build/repo/dist
8:06:35 PM: publishOrigin: ui
8:06:35 PM: functionsDirectory: /opt/build/repo/functions
8:06:37 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
8:06:37 PM: Failing build: Failed to build site
8:06:37 PM: Finished processing build request in 35.937s
8:06:37 PM: Failed during stage “building site”: Build script returned non-zero exit code: 2