Hello , i am robj1851 have an issue with the deploy of my site .
I am still getting the
“build.command” failed
Command failed with exit code 254: CI= npm run build (Search results for '"non-zero exit code: 254"' - Netlify Support Forums)
This are the deploy details:
Thanks in advance for the help
2:12:58 PM: Build ready to start
2:13:00 PM: build-image version: 195fbe127e5c374d9c4758652cb62e3b8936a395 (focal)
2:13:00 PM: build-image tag: v4.6.0
2:13:00 PM: buildbot version: 4ac77ee15240cafa5a14a04b6ca18d8959fa98e6
2:13:00 PM: Fetching cached dependencies
2:13:00 PM: Failed to fetch cache, continuing with build
2:13:00 PM: Starting to prepare the repo for build
2:13:01 PM: No cached dependencies found. Cloning fresh repo
2:13:01 PM: git clone GitHub - robjchacon/SuitTurtlesClub
2:13:01 PM: Preparing Git Reference refs/heads/main
2:13:01 PM: Parsing package.json dependencies
2:13:02 PM: Different build dir detected, going to use the one specified in the Netlify configuration file: ‘’ versus ‘/’ in the Netlify UI
2:13:02 PM: Starting build script
2:13:02 PM: Installing dependencies
2:13:02 PM: Python version set to 2.7
2:13:03 PM: Downloading and installing node v16.14.2…
2:13:03 PM: Downloading https://nodejs.org/dist/v16.14.2/node-v16.14.2-linux-x64.tar.xz…
2:13:03 PM: Computing checksum with sha256sum
2:13:04 PM: Checksums matched!
2:13:06 PM: Now using node v16.14.2 (npm v8.5.0)
2:13:06 PM: Started restoring cached build plugins
2:13:06 PM: Finished restoring cached build plugins
2:13:06 PM: Attempting ruby version 2.7.2, read from environment
2:13:08 PM: Using ruby version 2.7.2
2:13:08 PM: Using PHP version 8.0
2:13:08 PM: Started restoring cached go cache
2:13:08 PM: Finished restoring cached go cache
2:13:08 PM: go version go1.16.5 linux/amd64
2:13:08 PM: go version go1.16.5 linux/amd64
2:13:08 PM: Installing missing commands
2:13:08 PM: Verify run directory
2:13:10 PM:
2:13:10 PM: ────────────────────────────────────────────────────────────────
2:13:10 PM: Netlify Build
2:13:10 PM: ────────────────────────────────────────────────────────────────
2:13:10 PM:
2:13:10 PM: ❯ Version
2:13:10 PM: @netlify/build 26.5.0
2:13:10 PM:
2:13:10 PM: ❯ Flags
2:13:10 PM: baseRelDir: true
2:13:10 PM: buildId: 6238c02a0f488212d67daecc
2:13:10 PM: deployId: 6238c02a0f488212d67daece
2:13:10 PM:
2:13:10 PM: ❯ Current directory
2:13:10 PM: /opt/build/repo
2:13:10 PM:
2:13:10 PM: ❯ Config file
2:13:10 PM: No config file was defined: using default values.
2:13:10 PM:
2:13:10 PM: ❯ Context
2:13:10 PM: production
2:13:10 PM:
2:13:10 PM: ────────────────────────────────────────────────────────────────
2:13:10 PM: 1. Build command from Netlify app
2:13:10 PM: ────────────────────────────────────────────────────────────────
2:13:10 PM:
2:13:10 PM: $ CI= npm run build
2:13:10 PM: npm ERR! code ENOENT
2:13:10 PM: npm ERR! syscall open
2:13:10 PM: npm ERR! path /opt/build/repo/package.json
2:13:10 PM: npm ERR! errno -2
2:13:10 PM: npm ERR! enoent ENOENT: no such file or directory, open ‘/opt/build/repo/package.json’
2:13:10 PM: npm ERR! enoent This is related to npm not being able to find a file.
2:13:10 PM: npm ERR! enoent
2:13:10 PM: npm ERR! A complete log of this run can be found in:
2:13:10 PM: npm ERR! /opt/buildhome/.npm/_logs/2022-03-21T18_13_10_251Z-debug-0.log
2:13:10 PM:
2:13:10 PM: ────────────────────────────────────────────────────────────────
2:13:10 PM: “build.command” failed
2:13:10 PM: ────────────────────────────────────────────────────────────────
2:13:10 PM:
2:13:10 PM: Error message
2:13:10 PM: Command failed with exit code 254: CI= npm run build (Search results for '"non-zero exit code: 254"' - Netlify Support Forums)
2:13:10 PM:
2:13:10 PM: Error location
2:13:10 PM: In Build command from Netlify app:
2:13:10 PM: CI= npm run build
2:13:10 PM:
2:13:10 PM: Resolved config
2:13:10 PM: build:
2:13:10 PM: base: /opt/build/repo
2:13:10 PM: command: CI= npm run build
2:13:10 PM: commandOrigin: ui
2:13:10 PM: publish: /opt/build/repo/build
2:13:10 PM: publishOrigin: ui
2:13:10 PM: Caching artifacts
2:13:10 PM: Started saving build plugins
2:13:10 PM: Finished saving build plugins
2:13:10 PM: Started saving pip cache
2:13:10 PM: Finished saving pip cache
2:13:10 PM: Started saving emacs cask dependencies
2:13:10 PM: Finished saving emacs cask dependencies
2:13:10 PM: Started saving maven dependencies
2:13:10 PM: Finished saving maven dependencies
2:13:12 PM: Creating deploy upload records
2:13:10 PM: Started saving boot dependencies
2:13:10 PM: Finished saving boot dependencies
2:13:10 PM: Started saving rust rustup cache
2:13:10 PM: Finished saving rust rustup cache
2:13:10 PM: Started saving go dependencies
2:13:10 PM: Finished saving go dependencies
2:13: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)
2:13:12 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
2:13:12 PM: Failing build: Failed to build site
2:13:12 PM: Finished processing build request in 12.336408482s