Hello!
I’ve tried to upload an old repository of mine but it won’t work. I think some things have changed from then but not sure what. It used to deploy just fine. Here is the log maybe someone could help? I would appreciate it!
8:19:31 PM: Netlify Build
8:19:31 PM: ────────────────────────────────────────────────────────────────
8:19:31 PM:
8:19:31 PM: ❯ Version
8:19:31 PM: @netlify/build 29.20.6
8:19:31 PM:
8:19:31 PM: ❯ Flags
8:19:31 PM: baseRelDir: true
8:19:31 PM: buildId: 64ece50f16b4e14d18074547
8:19:31 PM: deployId: 64ece50f16b4e14d18074549
8:19:31 PM:
8:19:31 PM: ❯ Current directory
8:19:31 PM: /opt/build/repo
8:19:31 PM:
8:19:31 PM: ❯ Config file
8:19:31 PM: No config file was defined: using default values.
8:19:31 PM:
8:19:31 PM: ❯ Context
8:19:31 PM: production
8:19:31 PM:
8:19:31 PM: Build command from Netlify app
8:19:31 PM: ────────────────────────────────────────────────────────────────
8:19:31 PM:
8:19:31 PM: $ npm run build
8:19:32 PM: > newapp@0.1.0 build
8:19:32 PM: > react-scripts build
8:19:33 PM: Creating an optimized production build…
8:19:35 PM: Failed during stage ‘building site’: Build script returned non-zero exit code: 2 (Search results for '"non-zero exit code: 2"' - Netlify Support Forums)
8:19:33 PM: Error: error:0308010C:digital envelope routines::unsupported
8:19:33 PM: at new Hash (node:internal/crypto/hash:69:19)
8:19:33 PM: at Object.createHash (node:crypto:133:10)
8:19:33 PM: at module.exports (/opt/build/repo/node_modules/webpack/lib/util/createHash.js:135:53)
8:19:33 PM: at NormalModule._initBuildHash (/opt/build/repo/node_modules/webpack/lib/NormalModule.js:417:16)
8:19:33 PM: at handleParseError (/opt/build/repo/node_modules/webpack/lib/NormalModule.js:471:10)
8:19:33 PM: at /opt/build/repo/node_modules/webpack/lib/NormalModule.js:503:5
8:19:33 PM: at /opt/build/repo/node_modules/webpack/lib/NormalModule.js:358:12
8:19:33 PM: at /opt/build/repo/node_modules/loader-runner/lib/LoaderRunner.js:373:3
8:19:33 PM: at iterateNormalLoaders (/opt/build/repo/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
8:19:33 PM: at iterateNormalLoaders (/opt/build/repo/node_modules/loader-runner/lib/LoaderRunner.js:221:10)
8:19:33 PM: at /opt/build/repo/node_modules/loader-runner/lib/LoaderRunner.js:236:3
8:19:33 PM: at runSyncOrAsync (/opt/build/repo/node_modules/loader-runner/lib/LoaderRunner.js:130:11)
8:19:33 PM: at iterateNormalLoaders (/opt/build/repo/node_modules/loader-runner/lib/LoaderRunner.js:232:2)
8:19:33 PM: at Array. (/opt/build/repo/node_modules/loader-runner/lib/LoaderRunner.js:205:4)
8:19:33 PM: at Storage.finished (/opt/build/repo/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:55:16)
8:19:33 PM: at /opt/build/repo/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:91:9
8:19:33 PM: Browserslist: caniuse-lite is outdated. Please run:
8:19:33 PM: npx browserslist@latest --update-db
8:19:33 PM: Why you should do it regularly: GitHub - browserslist/browserslist: 🦔 Share target browsers between different front-end tools, like Autoprefixer, Stylelint and babel-preset-env
8:19:33 PM: /opt/build/repo/node_modules/react-scripts/scripts/build.js:19
8:19:33 PM: throw err;
8:19:33 PM: ^
8:19:33 PM: Error: error:0308010C:digital envelope routines::unsupported
8:19:33 PM: at new Hash (node:internal/crypto/hash:69:19)
8:19:33 PM: at Object.createHash (node:crypto:133:10)
8:19:33 PM: at module.exports (/opt/build/repo/node_modules/webpack/lib/util/createHash.js:135:53)
8:19:33 PM: at NormalModule._initBuildHash (/opt/build/repo/node_modules/webpack/lib/NormalModule.js:417:16)
8:19:33 PM: at /opt/build/repo/node_modules/webpack/lib/NormalModule.js:452:10
8:19:33 PM: at /opt/build/repo/node_modules/webpack/lib/NormalModule.js:323:13
8:19:33 PM: at /opt/build/repo/node_modules/loader-runner/lib/LoaderRunner.js:367:11
8:19:33 PM: at /opt/build/repo/node_modules/loader-runner/lib/LoaderRunner.js:233:18
8:19:33 PM: at context.callback (/opt/build/repo/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
8:19:33 PM: at /opt/build/repo/node_modules/babel-loader/lib/index.js:59:103
8:19:33 PM: at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
8:19:33 PM: opensslErrorStack: [ ‘error:03000086:digital envelope routines::initialization error’ ],
8:19:33 PM: library: ‘digital envelope routines’,
8:19:33 PM: reason: ‘unsupported’,
8:19:33 PM: code: ‘ERR_OSSL_EVP_UNSUPPORTED’
8:19:33 PM: }
8:19:33 PM: Node.js v18.17.1
8:19:33 PM:
8:19:33 PM: build.command failed
8:19:33 PM: ────────────────────────────────────────────────────────────────
8:19:33 PM:
8:19:33 PM: Error message
8:19:33 PM: Command failed with exit code 1: npm run build (Search results for '"non-zero exit code: 1"' - Netlify Support Forums)
8:19:33 PM:
8:19:33 PM: Error location
8:19:33 PM: In Build command from Netlify app:
8:19:33 PM: npm run build
8:19:33 PM:
8:19:33 PM: Resolved config
8:19:33 PM: build:
8:19:33 PM: command: npm run build
8:19:33 PM: commandOrigin: ui
8:19:33 PM: publish: /opt/build/repo/build
8:19:33 PM: publishOrigin: ui
8:19:35 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
8:19:35 PM: Failing build: Failed to build site
8:19:35 PM: Finished processing build request in 39.09s