Hello, been using Netlify for quite some time. And got several projects running here. So far i have been happy using it, but recently all of our projects fail during build. Based upon the build error message, it seem to be an npm package that been declared untrusty. (which is fine). Only issue is that it is affecting all projects, and they need to stay alive and not go down due to it.
The projects that fails are being written using Vue 2, so there are something here.
(Did test with a vue 3 project, which passed, so knowing it is something going around with vue2 and netlify that are not agreeing with each other heh).
Here are the Log given:
12:57:05 PM: Netlify Build
12:57:05 PM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
12:57:05 PM: β
12:57:05 PM: β― Version
12:57:05 PM: @netlify/build 29.11.7
12:57:05 PM: β
12:57:05 PM: β― Flags
12:57:05 PM: baseRelDir: true
12:57:05 PM: buildId: 6479cae9382d9a1a4727ace9
12:57:05 PM: deployId: 6479cae9382d9a1a4727aceb
12:57:05 PM: β
12:57:05 PM: β― Current directory
12:57:05 PM: /opt/build/repo
12:57:05 PM: β
12:57:05 PM: β― Config file
12:57:05 PM: No config file was defined: using default values.
12:57:05 PM: β
12:57:05 PM: β― Context
12:57:05 PM: production
12:57:05 PM: β
12:57:05 PM: Build command from Netlify app
12:57:05 PM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
12:57:05 PM: β
12:57:05 PM: $ npm run build
12:57:06 PM: > path@0.1.0 build
12:57:06 PM: > vue-cli-service build
12:57:06 PM: - Building for productionβ¦
12:57:07 PM: node:internal/crypto/hash:71
12:57:07 PM: this[kHandle] = new _Hash(algorithm, xofLen);
12:57:07 PM: ^
12:57:07 PM: Error: error:0308010C:digital envelope routines::unsupported
12:57:07 PM: at new Hash (node:internal/crypto/hash:71:19)
12:57:07 PM: at Object.createHash (node:crypto:133:10)
12:57:07 PM: at module.exports (/opt/build/repo/node_modules/webpack/lib/util/createHash.js:135:53)
12:57:07 PM: at NormalModule._initBuildHash (/opt/build/repo/node_modules/webpack/lib/NormalModule.js:417:16)
12:57:07 PM: at handleParseError (/opt/build/repo/node_modules/webpack/lib/NormalModule.js:471:10)
12:57:07 PM: at /opt/build/repo/node_modules/webpack/lib/NormalModule.js:503:5
12:57:07 PM: at /opt/build/repo/node_modules/webpack/lib/NormalModule.js:358:12
12:57:07 PM: at /opt/build/repo/node_modules/loader-runner/lib/LoaderRunner.js:373:3
12:57:07 PM: at iterateNormalLoaders (/opt/build/repo/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
12:57:07 PM: at Array. (/opt/build/repo/node_modules/loader-runner/lib/LoaderRunner.js:205:4)
12:57:07 PM: at Storage.finished (/opt/build/repo/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:55:16)
12:57:07 PM: at /opt/build/repo/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:91:9
12:57:07 PM: at /opt/build/repo/node_modules/graceful-fs/graceful-fs.js:123:16
12:57:07 PM: at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3) {
12:57:07 PM: opensslErrorStack: [ βerror:03000086:digital envelope routines::initialization errorβ ],
12:57:07 PM: library: βdigital envelope routinesβ,
12:57:07 PM: reason: βunsupportedβ,
12:57:07 PM: code: βERR_OSSL_EVP_UNSUPPORTEDβ
12:57:07 PM: }
12:57:07 PM: Node.js v18.16.0
12:57:07 PM: β
12:57:07 PM: βbuild.commandβ failed
12:57:07 PM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
12:57:07 PM: β
12:57:07 PM: Error message
12:57:07 PM: Command failed with exit code 1: npm run build (Search results for '"non-zero exit code: 1"' - Netlify Support Forums)
12:57:07 PM: β
12:57:07 PM: Error location
12:57:07 PM: In Build command from Netlify app:
12:57:07 PM: npm run build
12:57:07 PM: β
12:57:08 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)
12:57:07 PM: Resolved config
12:57:07 PM: build:
12:57:07 PM: command: npm run build
12:57:07 PM: commandOrigin: ui
12:57:07 PM: publish: /opt/build/repo/dist
12:57:07 PM: publishOrigin: ui
12:57:08 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
12:57:08 PM: Failing build: Failed to build site
12:57:09 PM: Finished processing build request in 26.213s