Hi,
I’m using your services to host my angular page.
I’ve added a @angular/localize package to provide i18n support, but now I cannot build my app.
It has changed the package json, but during the build process I the package is not available.
2:16:34 PM: Build ready to start
2:16:37 PM: build-image version: 7b53c5fc4445e3ec99d3949e5d1174a8c5be4f16
2:16:37 PM: build-image tag: v3.7.2
2:16:37 PM: buildbot version: af9581a1b3313dc235fa26c62d25d6ae954cae6e
2:16:37 PM: Fetching cached dependencies
2:16:37 PM: Starting to download cache of 433.8MB
2:16:40 PM: Finished downloading cache in 2.495634573s
2:16:40 PM: Starting to extract cache
2:17:00 PM: Finished extracting cache in 20.289516333s
2:17:00 PM: Finished fetching cache in 22.908434072s
2:17:00 PM: Starting to prepare the repo for build
2:17:00 PM: Preparing Git Reference refs/heads/feat/i18n
2:17:02 PM: Parsing package.json dependencies
2:17:03 PM: Starting build script
2:17:03 PM: Installing dependencies
2:17:03 PM: Python version set to 2.7
2:17:04 PM: Started restoring cached node version
2:17:08 PM: Finished restoring cached node version
2:17:08 PM: Downloading and installing node v12.22.1...
2:17:09 PM: Downloading https://nodejs.org/dist/v12.22.1/node-v12.22.1-linux-x64.tar.xz...
2:17:09 PM: Computing checksum with sha256sum
2:17:09 PM: Checksums matched!
2:17:12 PM: Now using node v12.22.1 (npm v6.14.12)
2:17:12 PM: Started restoring cached build plugins
2:17:12 PM: Finished restoring cached build plugins
2:17:12 PM: Attempting ruby version 2.7.1, read from environment
2:17:14 PM: Using ruby version 2.7.1
2:17:14 PM: Using PHP version 5.6
2:17:14 PM: Started restoring cached node modules
2:17:14 PM: Finished restoring cached node modules
2:17:14 PM: Installing NPM modules using NPM version 6.14.12
2:17:29 PM: > spotify-karaoke@0.1.1 postinstall /opt/build/repo
2:17:29 PM: > node ./decorate-angular-cli.js && ngcc --properties es2015 browser module main
2:17:30 PM: > NX Angular CLI has been decorated to enable computation caching.
2:17:36 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/fsevents):
2:17:36 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
2:17:36 PM: removed 1 package and audited 2640 packages in 20.386s
2:17:37 PM: 130 packages are looking for funding
2:17:37 PM: run `npm fund` for details
2:17:37 PM: found 0 vulnerabilities
2:17:37 PM: NPM modules installed
2:17:38 PM: Started restoring cached go cache
2:17:38 PM: Finished restoring cached go cache
2:17:38 PM: go version go1.14.4 linux/amd64
2:17:38 PM: go version go1.14.4 linux/amd64
2:17:38 PM: Installing missing commands
2:17:38 PM: Verify run directory
2:17:40 PM:
2:17:40 PM: ────────────────────────────────────────────────────────────────
2:17:40 PM: Netlify Build
2:17:40 PM: ────────────────────────────────────────────────────────────────
2:17:40 PM:
2:17:40 PM: ❯ Version
2:17:40 PM: @netlify/build 11.3.1
2:17:40 PM:
2:17:40 PM: ❯ Flags
2:17:40 PM: deployId: 608952226a51591957ddc1b3
2:17:40 PM:
2:17:40 PM: ❯ Current directory
2:17:40 PM: /opt/build/repo
2:17:40 PM:
2:17:40 PM: ❯ Config file
2:17:40 PM: /opt/build/repo/netlify.toml
2:17:40 PM:
2:17:40 PM: ❯ Context
2:17:40 PM: production
2:17:40 PM:
2:17:40 PM: ────────────────────────────────────────────────────────────────
2:17:40 PM: 1. Build command from Netlify app
2:17:40 PM: ────────────────────────────────────────────────────────────────
2:17:40 PM:
2:17:40 PM: $ npm run build:prod
2:17:40 PM: > spotify-karaoke@0.1.1 build:prod /opt/build/repo
2:17:40 PM: > npm run pre:build:prod && ng build spotify --aot --buildOptimizer --extractLicenses --no-namedChunks --optimization --outputHashing=all --no-sourceMap --no-vendorChunk
2:17:40 PM: > spotify-karaoke@0.1.1 pre:build:prod /opt/build/repo
2:17:40 PM: > node tools/prepare_secrets.js
2:17:41 PM: > nx run spotify:build --aot --buildOptimizer --extractLicenses --no-namedChunks --optimization --outputHashing=all --no-sourceMap --no-vendorChunk
2:17:44 PM: Unable to load translation file parsers. Please ensure '@angular/localize' is installed.
2:17:44 PM: npm ERR! code ELIFECYCLE
2:17:44 PM: npm ERR! errno 1
2:17:44 PM: npm ERR! spotify-karaoke@0.1.1 build:prod: `npm run pre:build:prod && ng build spotify --aot --buildOptimizer --extractLicenses --no-namedChunks --optimization --outputHashing=all --no-sourceMap --no-vendorChunk`
2:17:44 PM: npm ERR! Exit status 1
2:17:44 PM: npm ERR!
2:17:44 PM: npm ERR! Failed at the spotify-karaoke@0.1.1 build:prod script.
2:17:44 PM: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2:17:44 PM: npm ERR! A complete log of this run can be found in:
2:17:44 PM: npm ERR! /opt/buildhome/.npm/_logs/2021-04-28T12_17_44_397Z-debug.log
2:17:44 PM:
2:17:44 PM: ────────────────────────────────────────────────────────────────
2:17:44 PM: "build.command" failed
2:17:44 PM: ────────────────────────────────────────────────────────────────
2:17:44 PM:
2:17:44 PM: Error message
2:17:44 PM: Command failed with exit code 1: npm run build:prod
2:17:44 PM:
2:17:44 PM: Error location
2:17:44 PM: In Build command from Netlify app:
2:17:44 PM: npm run build:prod
2:17:44 PM:
2:17:44 PM: Resolved config
2:17:44 PM: build:
2:17:44 PM: command: npm run build:prod
2:17:44 PM: commandOrigin: ui
2:17:44 PM: environment:
2:17:44 PM: - NODE_ENV
2:17:44 PM: - NODE_VERSION
2:17:44 PM: - SPOTIFY_CLIENT_SECRET
2:17:44 PM: publish: /opt/build/repo/dist/apps/spotify
2:17:44 PM: redirects:
2:17:44 PM: - force: true
2:17:44 PM: from: /minilyrics-proxy/
2:17:44 PM: status: 200
2:17:44 PM: to: http://bzeutzheim.de:8981
2:17:44 PM: - force: true
2:17:44 PM: from: /minilyrics/* status: 200 to: http://search.crintsoft.com/:splat - conditions: Language: - pl from: /* status: 200 to: /pl/index.html - from: /* status: 200 to: /en/index.htmlCaching artifacts
2:17:44 PM: Started saving node modules
2:17:44 PM: Finished saving node modules
2:17:44 PM: Started saving build plugins
2:17:44 PM: Finished saving build plugins
2:17:44 PM: Started saving pip cache
2:17:44 PM: Finished saving pip cache
2:17:44 PM: Started saving emacs cask dependencies
2:17:44 PM: Finished saving emacs cask dependencies
2:17:44 PM: Started saving maven dependencies
2:17:45 PM: Finished saving maven dependencies
2:17:45 PM: Started saving boot dependencies
2:17:45 PM: Finished saving boot dependencies
2:17:45 PM: Started saving rust rustup cache
2:17:45 PM: Finished saving rust rustup cache
2:17:45 PM: Started saving go dependencies
2:17:45 PM: Finished saving go dependencies
2:17:49 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
2:17:49 PM: Creating deploy upload records
2:17:49 PM: Failing build: Failed to build site
2:17:49 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2
2:17:49 PM: Finished processing build request in 1m12.436418691s
I’ve tried a clear build (without a cache) but then I’ve some @nrwl/workpace and ngcc problems.
2:15:47 PM: Build ready to start
2:15:49 PM: build-image version: 7b53c5fc4445e3ec99d3949e5d1174a8c5be4f16
2:15:49 PM: build-image tag: v3.7.2
2:15:49 PM: buildbot version: af9581a1b3313dc235fa26c62d25d6ae954cae6e
2:15:49 PM: Building without cache
2:15:49 PM: Starting to prepare the repo for build
2:15:49 PM: No cached dependencies found. Cloning fresh repo
2:15:49 PM: git clone https://github.com/ArturBa/spotify
2:15:50 PM: Preparing Git Reference refs/heads/feat/i18n
2:15:50 PM: Parsing package.json dependencies
2:15:52 PM: Starting build script
2:15:52 PM: Installing dependencies
2:15:52 PM: Python version set to 2.7
2:15:53 PM: Downloading and installing node v12.22.1...
2:15:53 PM: Downloading https://nodejs.org/dist/v12.22.1/node-v12.22.1-linux-x64.tar.xz...
2:15:54 PM: Computing checksum with sha256sum
2:15:54 PM: Checksums matched!
2:15:56 PM: Now using node v12.22.1 (npm v6.14.12)
2:15:56 PM: Started restoring cached build plugins
2:15:56 PM: Finished restoring cached build plugins
2:15:57 PM: Attempting ruby version 2.7.1, read from environment
2:15:58 PM: Using ruby version 2.7.1
2:15:58 PM: Using PHP version 5.6
2:15:58 PM: Started restoring cached node modules
2:15:58 PM: Finished restoring cached node modules
2:15:58 PM: Installing NPM modules using NPM version 6.14.12
2:16:19 PM: > spotify-karaoke@0.1.1 postinstall /opt/build/repo
2:16:19 PM: > node ./decorate-angular-cli.js && ngcc --properties es2015 browser module main
2:16:20 PM: Angular CLI could not be decorated to enable computation caching. Please ensure @nrwl/workspace is installed.
2:16:20 PM: sh: 1: ngcc: not found
2:16:20 PM: npm ERR! code ELIFECYCLE
2:16:20 PM: npm ERR! syscall spawn
2:16:20 PM: npm ERR! file sh
2:16:20 PM: npm ERR! errno ENOENT
2:16:20 PM: npm ERR! spotify-karaoke@0.1.1 postinstall: `node ./decorate-angular-cli.js && ngcc --properties es2015 browser module main`
2:16:20 PM: npm ERR! spawn ENOENT
2:16:20 PM: npm ERR!
2:16:20 PM: npm ERR! Failed at the spotify-karaoke@0.1.1 postinstall script.
2:16:20 PM: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2:16:20 PM: npm ERR! A complete log of this run can be found in:
2:16:20 PM: npm ERR! /opt/buildhome/.npm/_logs/2021-04-28T12_16_20_144Z-debug.log
2:16:20 PM: Error during NPM install
2:16:20 PM: Build was terminated: Build script returned non-zero exit code: 1
2:16:20 PM: Creating deploy upload records
2:16:20 PM: Failing build: Failed to build site
2:16:20 PM: Failed during stage 'building site': Build script returned non-zero exit code: 1
2:16:20 PM: Finished processing build request in 31.3042406s
I’m trying to build using this package.json
Please help me