Build was terminated: script returned non-zero exit code :2

11:10:11 PM: Build ready to start
11:10:45 PM: build-image version: d7b3dbfb0846505993c9a131894d1858074c90b4 (focal)
11:10:45 PM: build-image tag: v4.10.1
11:10:45 PM: buildbot version: f45292fab0b32cea549baa8489f553abb9d888be
11:10:46 PM: Building without cache
11:10:46 PM: Starting to prepare the repo for build
11:10:46 PM: No cached dependencies found. Cloning fresh repo
11:10:46 PM: git clone https://github.com/royonk85/Projektphase
11:10:48 PM: Preparing Git Reference refs/heads/master
11:10:49 PM: Parsing package.json dependencies
11:10:50 PM: Different build dir detected, going to use the one specified in the Netlify configuration file: ‘algo-site-master/algo-site-master/angular-code’ versus ‘’ in the Netlify UI
11:10:50 PM: Different publish path detected, going to use the one specified in the Netlify configuration file: ‘algo-site-master/algo-site-master/angular-code/dist/de’ versus ‘dist/de’ in the Netlify UI
11:10:50 PM: Different build command detected, going to use the one specified in the Netlify configuration file: ‘npm run build:prod && npm run scully – --sr’ versus ‘CI= npm run build:prod && npm run scully – --sr’ in the Netlify UI
11:10:50 PM: Starting build script
11:10:50 PM: Installing dependencies
11:10:50 PM: Python version set to 2.7
11:10:50 PM: Downloading and installing node v16.17.0…
11:10:51 PM: Downloading https://nodejs.org/dist/v16.17.0/node-v16.17.0-linux-x64.tar.xz
11:10:51 PM: Computing checksum with sha256sum
11:10:51 PM: Checksums matched!
11:10:53 PM: Now using node v16.17.0 (npm v8.15.0)
11:10:53 PM: Started restoring cached build plugins
11:10:53 PM: Finished restoring cached build plugins
11:10:53 PM: Attempting ruby version 2.7.2, read from environment
11:10:54 PM: Using ruby version 2.7.2
11:10:54 PM: Using PHP version 8.0
11:10:55 PM: No npm workspaces detected
11:10:55 PM: Started restoring cached node modules
11:10:55 PM: Finished restoring cached node modules
11:10:55 PM: Installing NPM modules using NPM version 8.15.0
11:10:55 PM: npm WARN config tmp This setting is no longer used. npm stores temporary files in a special
11:10:55 PM: npm WARN config location in the cache, and they are managed by
11:10:55 PM: npm WARN config cacache.
11:10:55 PM: npm WARN config tmp This setting is no longer used. npm stores temporary files in a special
11:10:55 PM: npm WARN config location in the cache, and they are managed by
11:10:55 PM: npm WARN config cacache.
11:10:59 PM: npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See There’s Math.random(), and then there’s Math.random() · V8 for details.
11:11:00 PM: npm WARN deprecated source-map-resolve@0.6.0: See GitHub - lydell/source-map-resolve: [DEPRECATED] Resolve the source map and/or sources for a generated file.
11:11:00 PM: npm WARN deprecated streamroller@2.2.4: 2.x is no longer supported. Please upgrade to 3.x or higher.
11:11:00 PM: npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
11:11:02 PM: npm WARN deprecated flatten@1.0.3: flatten is deprecated in favor of utility frameworks such as lodash.
11:11:03 PM: npm WARN deprecated date-format@3.0.0: 3.x is no longer supported. Please upgrade to 4.x or higher.
11:11:05 PM: npm WARN deprecated @schematics/update@0.803.29: This was an internal-only Angular package up through Angular v11 which is no longer used or maintained. Upgrade Angular to v12+ to remove this dependency.
11:11:06 PM: npm WARN deprecated date-format@2.1.0: 2.x is no longer supported. Please upgrade to 4.x or higher.
11:11:07 PM: npm WARN deprecated ini@1.3.5: Please update to ini >=1.3.6 to avoid a prototype pollution issue
11:11:08 PM: npm WARN deprecated @wessberg/ts-evaluator@0.0.27: this package has been renamed to ts-evaluator. Please install ts-evaluator instead
11:11:08 PM: npm WARN deprecated @wessberg/ts-evaluator@0.0.27: this package has been renamed to ts-evaluator. Please install ts-evaluator instead
11:11:09 PM: npm WARN deprecated puppeteer@10.4.0: Version no longer supported. Upgrade to @latest
11:11:10 PM: npm WARN deprecated asciidoctor.js@1.5.9: Package no longer supported. Replaced by @asciidoctor/core
11:11:15 PM: npm WARN deprecated core-js@3.19.0: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
11:11:30 PM: added 1347 packages, and audited 1348 packages in 35s
11:11:30 PM: 98 packages are looking for funding
11:11:30 PM: run npm fund for details
11:11:30 PM: 21 vulnerabilities (5 moderate, 15 high, 1 critical)
11:11:30 PM: To address issues that do not require attention, run:
11:11:30 PM: npm audit fix
11:11:30 PM: To address all issues, run:
11:11:30 PM: npm audit fix --force
11:11:30 PM: Run npm audit for details.
11:11:30 PM: NPM modules installed
11:11:31 PM: npm WARN config tmp This setting is no longer used. npm stores temporary files in a special
11:11:31 PM: npm WARN config location in the cache, and they are managed by
11:11:31 PM: npm WARN config cacache.
11:11:31 PM: Started restoring cached go cache
11:11:31 PM: Finished restoring cached go cache
11:11:31 PM: Installing Go version 1.17 (requested 1.17)
11:11:40 PM: unset GOOS;
11:11:40 PM: unset GOARCH;
11:11:40 PM: export GOROOT=‘/opt/buildhome/.gimme/versions/go1.17.linux.amd64’;
11:11:40 PM: export PATH=“/opt/buildhome/.gimme/versions/go1.17.linux.amd64/bin:${PATH}”;
11:11:40 PM: go version >&2;
11:11:40 PM: export GIMME_ENV=“/opt/buildhome/.gimme/env/go1.17.linux.amd64.env”
11:11:40 PM: go version go1.17 linux/amd64
11:11:40 PM: Installing missing commands
11:11:40 PM: Verify run directory
11:11:41 PM: ​
11:11:41 PM: ────────────────────────────────────────────────────────────────
11:11:41 PM: Netlify Build
11:11:41 PM: ────────────────────────────────────────────────────────────────
11:11:41 PM: ​
11:11:41 PM: ❯ Version
11:11:41 PM: @netlify/build 27.15.7
11:11:41 PM: ​
11:11:41 PM: ❯ Flags
11:11:41 PM: baseRelDir: true
11:11:41 PM: buildId: 6307e533c8e8041448709a10
11:11:41 PM: deployId: 6307e533c8e8041448709a12
11:11:41 PM: ​
11:11:41 PM: ❯ Current directory
11:11:41 PM: /opt/build/repo/algo-site-master/algo-site-master/angular-code
11:11:41 PM: ​
11:11:41 PM: ❯ Config file
11:11:41 PM: /opt/build/repo/netlify.toml
11:11:41 PM: ​
11:11:41 PM: ❯ Context
11:11:41 PM: production
11:11:41 PM: ​
11:11:41 PM: ────────────────────────────────────────────────────────────────
11:11:41 PM: 1. build.command from netlify.toml
11:11:41 PM: ────────────────────────────────────────────────────────────────
11:11:41 PM: ​
11:11:41 PM: $ npm run build:prod && npm run scully – --sr
11:11:41 PM: npm WARN config tmp This setting is no longer used. npm stores temporary files in a special
11:11:41 PM: npm WARN config location in the cache, and they are managed by
11:11:41 PM: npm WARN config cacache.
11:11:41 PM: > angular-code@0.0.0 build:prod
11:11:41 PM: > ng b -c production
11:11:43 PM: - Generating browser application bundles (phase: setup)…
11:11:44 PM: Processing legacy “View Engine” libraries:
11:11:45 PM: - @ng-bootstrap/ng-bootstrap [es2015/esm2015] (git+https://github.com/ng-bootstrap/ng-bootstrap.git)
11:11:47 PM: Encourage the library authors to publish an Ivy distribution.
11:12:05 PM: :heavy_check_mark: Browser application bundle generation complete.
11:12:05 PM: :heavy_check_mark: Browser application bundle generation complete.
11:12:05 PM: - Generating localized bundles…
11:12:06 PM: :heavy_check_mark: Localized bundle generation complete.
11:12:06 PM: - Copying assets…
11:12:06 PM: :heavy_check_mark: Copying assets complete.
11:12:06 PM: - Generating index html…
11:12:07 PM: :heavy_check_mark: Index html generation complete.
11:12:07 PM: Initial Chunk Files | Names | Size
11:12:07 PM: main.a3ba62fd266de9bf.js | main | 504.93 kB
11:12:07 PM: styles.8117a3aa8a1a3b0f.css | styles | 259.83 kB
11:12:07 PM: polyfills.df89ba78983e9bf2.js | polyfills | 37.49 kB
11:12:07 PM: runtime.3ebb62aef4d31096.js | runtime | 2.89 kB
11:12:07 PM:
11:12:07 PM: | Initial Total | 805.14 kB
11:12:07 PM:
11:12:07 PM: Lazy Chunk Files | Names | Size
11:12:07 PM: 271.abfa42e8ae3f74d3.js | - | 1.19 kB
11:12:07 PM: 128.3422927374993394.js | - | 1.19 kB
11:12:07 PM: 534.d7ac6cb1bbd99fec.js | - | 1.19 kB
11:12:07 PM: 664.341eab35c6f2f1dd.js | - | 1.19 kB
11:12:07 PM: 323.87852dd607aa1a59.js | - | 1.19 kB
11:12:07 PM: 200.4a42f4b01b4276ac.js | - | 1.18 kB
11:12:07 PM: 148.18fa475aa06c2e10.js | - | 1.18 kB
11:12:07 PM:
11:12:07 PM: Build at: 2022-08-25T21:12:07.737Z - Hash: af256ccbea99d202 - Time: 23860ms
11:12:08 PM: npm WARN config tmp This setting is no longer used. npm stores temporary files in a special
11:12:08 PM: npm WARN config location in the cache, and they are managed by
11:12:08 PM: npm WARN config cacache.
11:12:08 PM: > angular-code@0.0.0 scully
11:12:08 PM: > npx scully
11:12:08 PM: npm WARN config tmp This setting is no longer used. npm stores temporary files in a special
11:12:08 PM: npm WARN config location in the cache, and they are managed by
11:12:08 PM: npm WARN config cacache.
11:12:09 PM: :heavy_check_mark: Folder “./scully” used for custom plugins
11:12:10 PM: x
11:12:10 PM: ---------
11:12:10 PM: We encountered an error executing the config file. “./scully.angular-code.config.ts”
11:12:10 PM: Check the error below, and try again later
11:12:10 PM: ---------
11:12:10 PM: TypeError: Cannot read properties of undefined (reading ‘launch’)
11:12:10 PM: at /opt/build/repo/algo-site-master/algo-site-master/angular-code/scully.angular-code.config.js:9:47
11:12:10 PM: at Object. (/opt/build/repo/algo-site-master/algo-site-master/angular-code/scully.angular-code.config.js:65:3)
11:12:10 PM: at Module._compile (node:internal/modules/cjs/loader:1126:14)
11:12:10 PM: at Object.Module._extensions…js (node:internal/modules/cjs/loader:1180:10)
11:12:10 PM: at Module.load (node:internal/modules/cjs/loader:1004:32)
11:12:10 PM: at Function.Module._load (node:internal/modules/cjs/loader:839:12)
11:12:10 PM: at Module.require (node:internal/modules/cjs/loader:1028:19)
11:12:10 PM: at require (node:internal/modules/cjs/helpers:102:18)
11:12:10 PM: at /opt/build/repo/algo-site-master/algo-site-master/angular-code/node_modules/@scullyio/scully/src/lib/utils/compileConfig.js:68:76
11:12:10 PM: at processTicksAndRejections (node:internal/process/task_queues:96:5)
11:12:10 PM: ​
11:12:10 PM: ────────────────────────────────────────────────────────────────
11:12:10 PM: “build.command” failed
11:12:10 PM: ────────────────────────────────────────────────────────────────
11:12:10 PM: ​
11:12:10 PM: Error message
11:12:10 PM: Command failed with exit code 15: npm run build:prod && npm run scully – --sr (Search results for '"non-zero exit code: 15"' - Netlify Support Forums)
11:12:10 PM: ​
11:12:10 PM: Error location
11:12:10 PM: In build.command from netlify.toml:
11:12:10 PM: npm run build:prod && npm run scully – --sr
11:12:10 PM: ​
11:12:10 PM: Resolved config
11:12:10 PM: build:
11:12:10 PM: base: /opt/build/repo/algo-site-master/algo-site-master/angular-code
11:12:10 PM: command: npm run build:prod && npm run scully – --sr
11:12:10 PM: commandOrigin: config
11:12:10 PM: environment:
11:12:10 PM: - NPM_FLAGS
11:12:10 PM: publish: /opt/build/repo/algo-site-master/algo-site-master/angular-code/dist/de
11:12:10 PM: publishOrigin: config
11:12:10 PM: redirects:
11:12:11 PM: - from: /* status: 200 to: /index.html redirectsOrigin: configCaching artifacts
11:12:11 PM: Started saving node modules
11:12:11 PM: Finished saving node modules
11:12:11 PM: Started saving build plugins
11:12:11 PM: Finished saving build plugins
11:12:11 PM: Started saving pip cache
11:12:11 PM: Finished saving pip cache
11:12:11 PM: Started saving emacs cask dependencies
11:12:11 PM: Finished saving emacs cask dependencies
11:12:11 PM: Started saving maven dependencies
11:12:11 PM: Finished saving maven dependencies
11:12:11 PM: Started saving boot dependencies
11:12:11 PM: Finished saving boot dependencies
11:12:11 PM: Started saving rust rustup cache
11:12:11 PM: Finished saving rust rustup cache
11:12:11 PM: Started saving go dependencies
11:12:11 PM: Finished saving go dependencies
11:12:11 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
11:12:11 PM: Creating deploy upload records
11:12:12 PM: Failing build: Failed to build site
11:12:12 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)
11:12:12 PM: Finished processing build request in 1m26.302149458s

A post was merged into an existing topic: Build was terminated: Build script returned non-zero exit code: 1

Duplicate of Build was terminated: Build script returned non-zero exit code: 1