Home
Support Forums

Command was killed with SIGKILL (Forced termination): yarn build

Hi community, I have created app using CRA almost always. This time I have a simple vanilla JS written app, and it’s giving me build errors that I am not used to. I have tried different options that I read here and in SO, but its still failing.
My package.json looks like:

{
  "devDependencies": {
    "cypress": "^6.2.0"
  },
  "dependencies": {
    "emmet": "^2.3.0",
    "serve": "^11.3.2",
    "start-server-and-test": "^1.11.7"
  },
  "scripts": {
    "start": "PORT=5000 react-scripts start",
    "start:silent": "BROWSER=none PORT=5000 react-scripts start",
    "build": "CI= yarn run build",
    "test": "react-scripts test",
    "eject": "react-scripts eject",
    "cy:open": "cypress open",
    "cypress": "start-server-and-test start:silent http://localhost:5000/ cy:open",
    "serve": "serve ./"
  }
}

and the logs:

4:36:01 PM: Build ready to start

4:36:04 PM: build-image version: 53b83b6bede2920f236b25b6f5a95334320dc849

4:36:04 PM: build-image tag: v3.6.0

4:36:04 PM: buildbot version: e26592b49d9d56b21349effe1b8fab4d50845f11

4:36:04 PM: Fetching cached dependencies

4:36:04 PM: Failed to fetch cache, continuing with build

4:36:04 PM: Starting to prepare the repo for build

4:36:04 PM: No cached dependencies found. Cloning fresh repo

4:36:04 PM: git clone https://github.com/myaccount/Vanilla

4:36:05 PM: Preparing Git Reference refs/heads/main

4:36:06 PM: Different publish path detected, going to use the one specified in the Netlify configuration file: 'dist' versus 'dist/' in the Netlify UI

4:36:06 PM: Starting build script

4:36:06 PM: Installing dependencies

4:36:06 PM: Python version set to 2.7

4:36:07 PM: v12.18.0 is already installed.

4:36:08 PM: Now using node v12.18.0 (npm v6.14.4)

4:36:08 PM: Started restoring cached build plugins

4:36:08 PM: Finished restoring cached build plugins

4:36:08 PM: Attempting ruby version 2.7.1, read from environment

4:36:09 PM: Using ruby version 2.7.1

4:36:09 PM: Using PHP version 5.6

4:36:09 PM: Started restoring cached node modules

4:36:09 PM: Finished restoring cached node modules

4:36:09 PM: Started restoring cached yarn cache

4:36:09 PM: Finished restoring cached yarn cache

4:36:09 PM: Installing yarn at version 1.22.4

4:36:09 PM: Installing Yarn!

4:36:09 PM: > Downloading tarball...

4:36:09 PM: [1/2]: https://yarnpkg.com/downloads/1.22.4/yarn-v1.22.4.tar.gz --> /tmp/yarn.tar.gz.NfHQ0ajJFX

4:36:09 PM: % Total % Received % Xferd Average Speed Time Time Time Current

4:36:09 PM: Dload Upload Total Spent Left Speed

4:36:09 PM: 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0

4:36:10 PM: 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0

4:36:10 PM: 100 80 100 80 0 0 248 0 --:--:-- --:--:-- --:--:-- 248

4:36:10 PM: 100 93 100 93 0 0 128 0 --:--:-- --:--:-- --:--:-- 128

4:36:10 PM: 100 643 100 643 0 0 653 0 --:--:-- --:--:-- --:--:-- 653

4:36:11 PM: 0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0

4:36:11 PM: 100 1215k 100 1215k 0 0 862k 0 0:00:01 0:00:01 --:--:-- 3312k

4:36:11 PM: [2/2]: https://yarnpkg.com/downloads/1.22.4/yarn-v1.22.4.tar.gz.asc --> /tmp/yarn.tar.gz.NfHQ0ajJFX.asc

4:36:11 PM: 100 84 100 84 0 0 2900 0 --:--:-- --:--:-- --:--:-- 2900

4:36:11 PM: 100 97 100 97 0 0 1236 0 --:--:-- --:--:-- --:--:-- 1236

4:36:11 PM: 100 647 100 647 0 0 5915 0 --:--:-- --:--:-- --:--:-- 5915

4:36:11 PM: 100 1028 100 1028 0 0 6735 0 --:--:-- --:--:-- --:--:-- 6735

4:36:11 PM: > Verifying integrity...

4:36:11 PM: gpg: Signature made Mon 09 Mar 2020 03:52:13 PM UTC using RSA key ID 69475BAA

4:36:11 PM: gpg: Good signature from "Yarn Packaging <yarn@dan.cx>"

4:36:11 PM: gpg: WARNING: This key is not certified with a trusted signature!

4:36:11 PM: gpg: There is no indication that the signature belongs to the owner.

4:36:11 PM: Primary key fingerprint: 72EC F46A 56B4 AD39 C907 BBB7 1646 B01B 86E5 0310

4:36:11 PM: Subkey fingerprint: 6D98 490C 6F1A CDDD 448E 4595 4F77 6793 6947 5BAA

4:36:11 PM: > GPG signature looks good

4:36:11 PM: > Extracting to ~/.yarn...

4:36:11 PM: > Adding to $PATH...

4:36:11 PM: > Successfully installed Yarn 1.22.4! Please open another terminal where the `yarn` command will now be available.

4:36:12 PM: Installing NPM modules using Yarn version 1.22.4

4:36:12 PM: yarn install v1.22.4

4:36:12 PM: warning package.json: No license field

4:36:12 PM: warning No license field

4:36:12 PM: [1/4] Resolving packages...

4:36:12 PM: [2/4] Fetching packages...

4:36:19 PM: [3/4] Linking dependencies...

4:36:21 PM: [4/4] Building fresh packages...

4:36:37 PM: Done in 24.83s.

4:36:37 PM: NPM modules installed using Yarn

4:36:37 PM: warning package.json: No license field

4:36:37 PM: Started restoring cached go cache

4:36:37 PM: Finished restoring cached go cache

4:36:37 PM: go version go1.14.4 linux/amd64

4:36:37 PM: go version go1.14.4 linux/amd64

4:36:37 PM: Installing missing commands

4:36:37 PM: Verify run directory

4:36:38 PM: ​

4:36:38 PM: ────────────────────────────────────────────────────────────────

4:36:38 PM: Netlify Build

4:36:38 PM: ────────────────────────────────────────────────────────────────

4:36:38 PM: ​

4:36:38 PM: ❯ Version

4:36:38 PM: @netlify/build 8.0.1

4:36:38 PM: ​

4:36:38 PM: ❯ Flags

4:36:38 PM: deployId: 5ffa05a134de3fcd8b123c3a

4:36:38 PM: mode: buildbot

4:36:39 PM: ​

4:36:39 PM: ❯ Current directory

4:36:39 PM: /opt/build/repo

4:36:39 PM: ​

4:36:39 PM: ❯ Config file

4:36:39 PM: No config file was defined: using default values.

4:36:39 PM: ​

4:36:39 PM: ❯ Context

4:36:39 PM: production

4:36:39 PM: ​

4:36:39 PM: ────────────────────────────────────────────────────────────────

4:36:39 PM: 1. Build command from Netlify app

4:36:39 PM: ────────────────────────────────────────────────────────────────

4:36:39 PM: ​

4:36:39 PM: $ yarn build

4:36:39 PM: yarn run v1.22.4

4:36:39 PM: warning package.json: No license field

4:36:39 PM: $ CI= yarn run build

4:36:39 PM: warning package.json: No license field

4:36:39 PM: $ CI= yarn run build

4:36:39 PM: warning package.json: No license field

4:36:39 PM: $ CI= yarn run build

4:36:39 PM: warning package.json: No license field

4:36:39 PM: $ CI= yarn run build

4:36:40 PM: warning package.json: No license field

4:36:40 PM: $ CI= yarn run build

4:36:40 PM: warning package.json: No license field

4:36:40 PM: $ CI= yarn run build

4:36:40 PM: warning package.json: No license field

4:36:40 PM: $ CI= yarn run build

4:36:40 PM: warning package.json: No license field

4:36:40 PM: $ CI= yarn run build

4:36:41 PM: warning package.json: No license field

4:36:41 PM: $ CI= yarn run build

4:36:41 PM: warning package.json: No license field
4:37:12 PM: $ CI= yarn run build

4:37:12 PM: warning package.json: No license field

4:37:12 PM: $ CI= yarn run build

4:37:12 PM: warning package.json: No license field

4:37:12 PM: $ CI= yarn run build

4:37:13 PM: warning package.json: No license field

4:37:13 PM: $ CI= yarn run build

4:37:13 PM: warning package.json: No license field

4:37:13 PM: $ CI= yarn run build

4:37:13 PM: warning package.json: No license field

4:37:13 PM: $ CI= yarn run build

4:37:13 PM: warning package.json: No license field

4:37:13 PM: $ CI= yarn run build

4:37:13 PM: warning package.json: No license field

4:37:14 PM: $ CI= yarn run build

4:37:14 PM: warning package.json: No license field

4:37:14 PM: $ CI= yarn run build

4:37:14 PM: warning package.json: No license field

4:37:14 PM: $ CI= yarn run build

4:37:14 PM: warning package.json: No license field

4:37:14 PM: $ CI= yarn run build

4:37:14 PM: warning package.json: No license field

4:37:14 PM: $ CI= yarn run build

4:37:15 PM: warning package.json: No license field

4:37:15 PM: $ CI= yarn run build

4:37:15 PM: warning package.json: No license field

4:37:15 PM: $ CI= yarn run build

4:37:15 PM: warning package.json: No license field

4:37:15 PM: $ CI= yarn run build

4:37:15 PM: warning package.json: No license field

4:37:15 PM: $ CI= yarn run build

4:37:15 PM: warning package.json: No license field

4:37:15 PM: $ CI= yarn run build

4:37:16 PM: warning package.json: No license field

4:37:16 PM: $ CI= yarn run build

4:37:19 PM: ​

4:37:19 PM: ────────────────────────────────────────────────────────────────

4:37:19 PM: "build.command" failed

4:37:19 PM: ────────────────────────────────────────────────────────────────

4:37:19 PM: ​

4:37:19 PM: Error message

4:37:19 PM: Command was killed with SIGKILL (Forced termination): yarn build

4:37:19 PM: ​

4:37:19 PM: Error location

4:37:19 PM: In Build command from Netlify app:

4:37:19 PM: yarn build

4:37:19 PM: ​

4:37:19 PM: Resolved config

4:37:19 PM: build:

4:37:19 PM: command: yarn build

4:37:19 PM: commandOrigin: ui

4:37:19 PM: publish: /opt/build/repo/dist

4:37:19 PM: /opt/build-bin/build: line 74: 1375 Killed FORCE_COLOR=1 "$netlify_build_node_bin" "$netlify_build_bin" --node-path="$user_node_path" --cachedConfig="$cached_netlify_build_config" --token="$netlify_token" --deploy-id="$DEPLOY_ID" --mode="buildbot" --send-status --statsd.host="$STATSD_HOST" --statsd.port="$STATSD_PORT" --functions-dist-dir="$functions_dist_dir" --buildbot-server-socket="$buildbot_server_socket" --feature-flags="$feature_flags"

4:37:19 PM: warning package.json: No license field

4:37:19 PM: Caching artifacts

4:37:19 PM: Started saving node modules

4:37:19 PM: Finished saving node modules

4:37:19 PM: Started saving build plugins

4:37:19 PM: Killed

4:37:19 PM: Finished saving build plugins

4:37:19 PM: Started saving yarn cache

4:37:19 PM: Finished saving yarn cache

4:37:19 PM: Started saving pip cache

4:37:19 PM: error Command failed with exit code 137.

4:37:19 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:19 PM: $ CI= yarn run build

4:37:19 PM: Killed

4:37:19 PM: Killed

4:37:19 PM: error Command failed with exit code 137.

4:37:19 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:19 PM: Finished saving pip cache

4:37:19 PM: Started saving emacs cask dependencies

4:37:19 PM: Finished saving emacs cask dependencies

4:37:19 PM: Started saving maven dependencies

4:37:19 PM: Finished saving maven dependencies

4:37:19 PM: Started saving boot dependencies

4:37:19 PM: Killed

4:37:19 PM: Finished saving boot dependencies

4:37:19 PM: Started saving rust rustup cache

4:37:19 PM: Finished saving rust rustup cache

4:37:19 PM: Started saving rust cargo bin cache

4:37:19 PM: Finished saving rust cargo bin cache

4:37:19 PM: Started saving go dependencies

4:37:19 PM: Killed

4:37:19 PM: Finished saving go dependencies

4:37:20 PM: Killed

4:37:20 PM: error Command failed with exit code 137.

4:37:20 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:20 PM: Killed

4:37:20 PM: warning package.json: No license field

4:37:20 PM: $ CI= yarn run build

4:37:20 PM: error Command failed with exit code 137.

4:37:20 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:20 PM: Killed

4:37:20 PM: Killed

4:37:20 PM: error Command failed with exit code 137.

4:37:20 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:20 PM: Killed

4:37:20 PM: Killed

4:37:20 PM: error Command failed with exit code 137.

4:37:20 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:20 PM: warning package.json: No license field

4:37:20 PM: Killed

4:37:20 PM: $ CI= yarn run build

4:37:21 PM: error Command failed with signal "SIGKILL".

4:37:21 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:21 PM: error Command failed with exit code 137.

4:37:21 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:21 PM: error Command failed with exit code 137.

4:37:21 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:21 PM: error Command failed with signal "SIGKILL".

4:37:24 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:24 PM: error Command failed with exit code 1.

4:37:24 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:24 PM: error Command failed with exit code 1.

4:37:24 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:24 PM: error Command failed with signal "SIGKILL".

4:37:24 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:24 PM: error Command failed with exit code 1.

4:37:24 PM: error Command failed with exit code 1.

4:37:24 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:24 PM: error Command failed with exit code 1.

4:37:24 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:24 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:24 PM: Killed

4:37:24 PM: warning package.json: No license field

4:37:24 PM: error Command failed with exit code 137.

4:37:24 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:24 PM: Killed

4:37:24 PM: error Command failed with exit code 1.

4:37:24 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:24 PM: error Command failed with exit code 137.

4:37:24 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:24 PM: error Command failed with exit code 137.

4:37:24 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:24 PM: $ CI= yarn run build

4:37:24 PM: error Command failed with exit code 137.

4:37:24 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:24 PM: Killed

4:37:24 PM: error Command failed with exit code 1.

4:37:24 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:24 PM: Killed

4:37:24 PM: error Command failed with exit code 137.

4:37:24 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:24 PM: error Command failed with exit code 137.

4:37:24 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:24 PM: error Command failed with exit code 1.

4:37:24 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:24 PM: error Command failed with exit code 137.

4:37:24 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:24 PM: error Command failed with exit code 137.

4:37:24 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:24 PM: error Command failed with signal "SIGKILL".

4:37:24 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:24 PM: error Command failed with exit code 1.

4:37:24 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:24 PM: error Command failed with exit code 1.

4:37:24 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:24 PM: error Command failed with exit code 137.

4:37:24 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:24 PM: error Command failed with exit code 137.

4:37:24 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:24 PM: error Command failed with exit code 137.

4:37:24 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:24 PM: error Command failed with exit code 137.

4:37:24 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:24 PM: error Command failed with exit code 1.

4:37:24 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:24 PM: error Command failed with exit code 137.

4:37:24 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:24 PM: error Command failed with exit code 1.

4:37:24 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:24 PM: error Command failed with exit code 1.

4:37:24 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:24 PM: error Command failed with exit code 137.

4:37:24 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:24 PM: error Command failed with exit code 1.

4:37:24 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:24 PM: error Command failed with exit code 137.

4:37:24 PM: error Command failed with exit code 137.

4:37:24 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:24 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:24 PM: error Command failed with exit code 137.

4:37:24 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:24 PM: error Command failed with exit code 137.

4:37:24 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:24 PM: error Command failed with exit code 137.

4:37:24 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:24 PM: error Command failed with exit code 1.

4:37:24 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:24 PM: error Command failed with exit code 137.

4:37:24 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:24 PM: error Command failed with exit code 1.

4:37:24 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:24 PM: error Command failed with exit code 137.

4:37:24 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:24 PM: error Command failed with exit code 1.

4:37:24 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:24 PM: error Command failed with exit code 137.

4:37:24 PM: error Command failed with exit code 137.

4:37:24 PM: error Command failed with exit code 1.

4:37:24 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:25 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:25 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:25 PM: error Command failed with exit code 1.

4:37:26 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:26 PM: warning package.json: No license field

4:37:26 PM: error Command failed with exit code 1.

4:37:26 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:26 PM: $ CI= yarn run build

4:37:26 PM: error Command failed with exit code 1.

4:37:26 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:26 PM: error Command failed with exit code 1.

4:37:26 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:26 PM: error Command failed with exit code 1.

4:37:26 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:26 PM: error Command failed with exit code 1.

4:37:26 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:26 PM: error Command failed with exit code 1.

4:37:26 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:26 PM: error Command failed with exit code 1.

4:37:26 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:26 PM: error Command failed with exit code 1.

4:37:26 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:26 PM: error Command failed with exit code 1.

4:37:26 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:26 PM: error Command failed with exit code 1.

4:37:26 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:26 PM: error Command failed with exit code 1.

4:37:26 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:26 PM: error Command failed with exit code 1.

4:37:26 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:26 PM: warning package.json: No license field

4:37:26 PM: error Command failed with exit code 1.

4:37:26 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:26 PM: $ CI= yarn run build

4:37:26 PM: error Command failed with exit code 1.

4:37:26 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:26 PM: error Command failed with exit code 1.

4:37:26 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:26 PM: error Command failed with exit code 1.

4:37:26 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:26 PM: error Command failed with exit code 1.

4:37:26 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:27 PM: error Command failed with exit code 1.

4:37:27 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:27 PM: warning package.json: No license field

4:37:27 PM: $ CI= yarn run build

4:37:27 PM: warning package.json: No license field

4:37:27 PM: $ CI= yarn run build

4:37:27 PM: warning package.json: No license field

4:37:27 PM: $ CI= yarn run build

4:37:27 PM: /tmp/yarn--1610221047671-0.7651277829789247/yarn: 3: exec: /opt/buildhome/.nvm/versions/node/v12.18.0/bin/node: not found

4:37:27 PM: error Command failed with exit code 127.

4:37:27 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:27 PM: error Command failed with exit code 127.

4:37:27 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:27 PM: error Command failed with exit code 127.

4:37:27 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:27 PM: error Command failed with exit code 127.

4:37:27 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:27 PM: error Command failed with exit code 127.

4:37:27 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:27 PM: error Command failed with exit code 127.

4:37:27 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:27 PM: error Command failed with exit code 127.

4:37:27 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:27 PM: error Command failed with exit code 127.

4:37:27 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:27 PM: error Command failed with exit code 127.

4:37:27 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:27 PM: error Command failed with exit code 127.

4:37:27 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

4:37:27 PM: Error running command: Build script returned non-zero exit code: 137

4:37:27 PM: Failing build: Failed to build site

4:37:27 PM: Failed during stage 'building site': Build script returned non-zero exit code: 137

4:37:28 PM: Finished processing build request in 1m24.001139038s

In deploy settings I have tried with “CI= yarn run build”, “yarn run build” and “yarn build”, but nothing. Does anyone can help me?

Thanks in advance.
Mauro

Hey there,
Looks like a gnarly loop! I think you’ll want CI= yarn build either in your build command in the UI

OR

set as your build command in the netlify.toml file.

Then, in your package.json, you’ll want whatever build command you static site generator is using, i.e. gatsby build. Let us know if this helps or if you have any other questions!