Hello guys I’m getting “failed during stage ‘building site’: Build script returned non-zero exit code: 127” error when I try to deploy my app. Below are the logs.
11:26:22 PM: Build ready to start
11:26:24 PM: build-image version: 2dbd444fcdce00cf06325060a8238d5ae3e86774
11:26:24 PM: build-image tag: v3.3.7
11:26:24 PM: buildbot version: d305548225ac57bb00eb5a596b0b8674e76a4681
11:26:24 PM: Fetching cached dependencies
11:26:24 PM: Failed to fetch cache, continuing with build
11:26:24 PM: Starting to prepare the repo for build
11:26:24 PM: No cached dependencies found. Cloning fresh repo
11:26:24 PM: git clone https://github.com/RocqJones/jonesmbindyo
11:26:26 PM: Preparing Git Reference refs/heads/master
11:26:26 PM: Starting build script
11:26:26 PM: Installing dependencies
11:26:27 PM: Downloading and installing node v10.20.1…
11:26:28 PM: Downloading https://nodejs.org/dist/v10.20.1/node-v10.20.1-linux-x64.tar.xz…
11:26:28 PM:
##########
11:26:28 PM: 14.8%
11:26:28 PM:
####################################################
11:26:28 PM: #################### 100.0%
11:26:28 PM: Computing checksum with sha256sum
11:26:28 PM: Checksums matched!
11:26:30 PM: Now using node v10.20.1 (npm v6.14.4)
11:26:31 PM: Attempting ruby version 2.6.2, read from environment
11:26:32 PM: Using ruby version 2.6.2
11:26:32 PM: Using PHP version 5.6
11:26:32 PM: Started restoring cached go cache
11:26:32 PM: Finished restoring cached go cache
11:26:32 PM: unset GOOS;
11:26:32 PM: unset GOARCH;
11:26:32 PM: export GOROOT=‘/opt/buildhome/.gimme/versions/go1.12.linux.amd64’;
11:26:32 PM: export PATH=“/opt/buildhome/.gimme/versions/go1.12.linux.amd64/bin:${PATH}”;
11:26:32 PM: go version >&2;
11:26:32 PM: export GIMME_ENV=‘/opt/buildhome/.gimme/env/go1.12.linux.amd64.env’;
11:26:32 PM: go version go1.12 linux/amd64
11:26:32 PM: Installing missing commands
11:26:32 PM: Verify run directory
11:26:32 PM: Executing user command: npm run build
11:26:33 PM: npm
11:26:33 PM: ERR!
11:26:33 PM: code
11:26:33 PM: ENOENT
11:26:33 PM: npm
11:26:33 PM: ERR!
11:26:33 PM: syscall
11:26:33 PM: open
11:26:33 PM: npm
11:26:33 PM: ERR!
11:26:33 PM: path
11:26:33 PM: /opt/build/repo/package.json
11:26:33 PM: npm
11:26:33 PM: ERR!
11:26:33 PM: errno
11:26:33 PM: -2
11:26:33 PM: npm
11:26:33 PM: ERR!
11:26:33 PM: enoent
11:26:33 PM: ENOENT: no such file or directory, open ‘/opt/build/repo/package.json’
11:26:33 PM: npm
11:26:33 PM: ERR!
11:26:33 PM: enoent
11:26:33 PM: This is related to npm not being able to find a file.
11:26:33 PM: npm
11:26:33 PM: ERR!
11:26:33 PM: enoent
11:26:33 PM: npm
11:26:33 PM: ERR! A complete log of this run can be found in:
11:26:33 PM: npm ERR! /opt/buildhome/.npm/_logs/2020-04-29T20_26_33_109Z-debug.log
11:26:33 PM: Skipping functions preparation step: no functions directory set
11:26:33 PM: Caching artifacts
11:26:33 PM: Started saving pip cache
11:26:33 PM: Finished saving pip cache
11:26:33 PM: Started saving emacs cask dependencies
11:26:33 PM: Finished saving emacs cask dependencies
11:26:33 PM: Started saving maven dependencies
11:26:33 PM: Finished saving maven dependencies
11:26:33 PM: Started saving boot dependencies
11:26:33 PM: Finished saving boot dependencies
11:26:33 PM: Started saving go dependencies
11:26:33 PM: Finished saving go dependencies
11:26:37 PM: Error running command: Build script returned non-zero exit code: 254
11:26:37 PM: Failing build: Failed to build site
11:26:37 PM: failed during stage ‘building site’: Build script returned non-zero exit code: 254
11:26:37 PM: Finished processing build request in 13.742989126s