2:41:22 PM: Build ready to start
2:41:24 PM: build-image version: d7b3dbfb0846505993c9a131894d1858074c90b4 (focal)
2:41:24 PM: build-image tag: v4.10.1
2:41:24 PM: buildbot version: f4df34fdee5e467fb0a8a2f62e3840ffaba0a9bc
2:41:24 PM: Building without cache
2:41:24 PM: Starting to prepare the repo for build
2:41:24 PM: No cached dependencies found. Cloning fresh repo
2:41:24 PM: git clone https://github.com/royonk85/Projektphase
2:41:26 PM: Preparing Git Reference refs/heads/master
2:41:28 PM: Parsing package.json dependencies
2:41:28 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 βalgo-site-master/algo-site-master/angular-code/β in the Netlify UI
2:41:28 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β in the Netlify UI
2:41:28 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 βnpm run scullyβ in the Netlify UI
2:41:28 PM: Starting build script
2:41:29 PM: Installing dependencies
2:41:29 PM: Python version set to 2.7
2:41:29 PM: v16.16.0 is already installed.
2:41:29 PM: Now using node v16.16.0 (npm v8.11.0)
2:41:29 PM: Started restoring cached build plugins
2:41:29 PM: Finished restoring cached build plugins
2:41:29 PM: Attempting ruby version 2.7.2, read from environment
2:41:30 PM: Using ruby version 2.7.2
2:41:30 PM: Using PHP version 8.0
2:41:30 PM: No npm workspaces detected
2:41:30 PM: Started restoring cached node modules
2:41:30 PM: Finished restoring cached node modules
2:41:31 PM: Installing NPM modules using NPM version 8.11.0
2:41:31 PM: npm WARN config tmp This setting is no longer used. npm stores temporary files in a special
2:41:31 PM: npm WARN config location in the cache, and they are managed by
2:41:31 PM: npm WARN config cacache
.
2:41:31 PM: npm WARN config tmp This setting is no longer used. npm stores temporary files in a special
2:41:31 PM: npm WARN config location in the cache, and they are managed by
2:41:31 PM: npm WARN config cacache
.
2:41:32 PM: npm ERR! code ERESOLVE
2:41:32 PM: npm ERR! ERESOLVE could not resolve
2:41:32 PM: npm ERR!
2:41:32 PM: npm ERR! While resolving: @ng-bootstrap/ng-bootstrap@10.0.0
2:41:32 PM: npm ERR! Found: @angular/common@13.0.2
2:41:32 PM: npm ERR! node_modules/@angular/common
2:41:32 PM: npm ERR! @angular/common@β~13.0.0β from the root project
2:41:32 PM: npm ERR! peer @angular/common@β^13.0.0 || ^14.0.0-0β from @angular/cdk@13.0.2
2:41:32 PM: npm ERR! node_modules/@angular/cdk
2:41:32 PM: npm ERR! @angular/cdk@β^13.0.2β from the root project
2:41:32 PM: npm ERR! peer @angular/cdk@β13.0.2β from @angular/material@13.0.2
2:41:32 PM: npm ERR! node_modules/@angular/material
2:41:32 PM: npm ERR! @angular/material@β^13.0.2β from the root project
2:41:32 PM: npm ERR! 6 more (@angular/forms, @angular/material, β¦)
2:41:32 PM: npm ERR!
2:41:32 PM: npm ERR! Could not resolve dependency:
2:41:32 PM: npm ERR! peer @angular/common@β^12.0.0β from @ng-bootstrap/ng-bootstrap@10.0.0
2:41:32 PM: npm ERR! node_modules/@ng-bootstrap/ng-bootstrap
2:41:32 PM: npm ERR! @ng-bootstrap/ng-bootstrap@β^10.0.0β from the root project
2:41:32 PM: npm ERR!
2:41:32 PM: npm ERR! Conflicting peer dependency: @angular/common@12.2.16
2:41:32 PM: npm ERR! node_modules/@angular/common
2:41:32 PM: npm ERR! peer @angular/common@β^12.0.0β from @ng-bootstrap/ng-bootstrap@10.0.0
2:41:32 PM: npm ERR! node_modules/@ng-bootstrap/ng-bootstrap
2:41:32 PM: npm ERR! @ng-bootstrap/ng-bootstrap@β^10.0.0β from the root project
2:41:32 PM: npm ERR!
2:41:32 PM: npm ERR! Fix the upstream dependency conflict, or retry
2:41:32 PM: npm ERR! this command with --force, or --legacy-peer-deps
2:41:32 PM: npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
2:41:32 PM: npm ERR!
2:41:32 PM: npm ERR! See /opt/buildhome/.npm/eresolve-report.txt for a full report.
2:41:32 PM: npm ERR! A complete log of this run can be found in:
2:41:32 PM: npm ERR! /opt/buildhome/.npm/_logs/2022-08-11T12_41_31_485Z-debug-0.log
2:41:33 PM: Error during NPM install
2:41:33 PM: Build was terminated: Build script returned non-zero exit code: 1
2:41:33 PM: Creating deploy upload records
2:41:33 PM: Failing build: Failed to build site
2:41:33 PM: Failed during stage βbuilding siteβ: Build script returned non-zero exit code: 1 (Search results for '"non-zero exit code: 1"' - Netlify Support Forums)
2:41:33 PM: Finished processing build request in 8.802400375s
@royonk85 See this answer:
I know youβre using angular and not react, but the type of error and the solution is the same.
Thank you for answer i try it and have the following error
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: Browser application bundle generation complete.
11:12:05 PM: Browser application bundle generation complete.
11:12:05 PM: - Generating localized bundlesβ¦
11:12:06 PM: Localized bundle generation complete.
11:12:06 PM: - Copying assetsβ¦
11:12:06 PM: Copying assets complete.
11:12:06 PM: - Generating index htmlβ¦
11:12:07 PM: 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: 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
Hey @royonk85
Based on this there is an issue with the configuration file.