Error 254 help!

Hello!! I need help with getting my github repo to show. I am getting “page not found” when i click the link and returns a error 254 code. It works when i test it locally but not when uploaded.

This is the code

2:32:04 PM: Build ready to start
2:32:06 PM: build-image version: 73def8bb10593b9b818f44989a75ea508018ccb7 (focal)
2:32:06 PM: build-image tag: v4.5.2
2:32:06 PM: buildbot version: 8cd320132979d1a1a502e85e77b47b97cc7d659f
2:32:06 PM: Fetching cached dependencies
2:32:06 PM: Failed to fetch cache, continuing with build
2:32:06 PM: Starting to prepare the repo for build
2:32:07 PM: No cached dependencies found. Cloning fresh repo
2:32:07 PM: git clone GitHub - 8BitStoners/8-Bit-Stoners
2:32:09 PM: Preparing Git Reference refs/heads/main
2:32:09 PM: Parsing package.json dependencies
2:32:10 PM: Different build dir detected, going to use the one specified in the Netlify configuration file: ‘’ versus ‘/’ in the Netlify UI
2:32:10 PM: Starting build script
2:32:10 PM: Installing dependencies
2:32:10 PM: Python version set to 2.7
2:32:11 PM: Downloading and installing node v16.13.2…
2:32:11 PM: Downloading https://nodejs.org/dist/v16.13.2/node-v16.13.2-linux-x64.tar.xz
2:32:11 PM: Computing checksum with sha256sum
2:32:12 PM: Checksums matched!
2:32:15 PM: Now using node v16.13.2 (npm v8.1.2)
2:32:15 PM: Started restoring cached build plugins
2:32:15 PM: Finished restoring cached build plugins
2:32:15 PM: Attempting ruby version 2.7.2, read from environment
2:32:16 PM: Using ruby version 2.7.2
2:32:17 PM: Using PHP version 8.0
2:32:17 PM: Started restoring cached go cache
2:32:17 PM: Finished restoring cached go cache
2:32:17 PM: go version go1.16.5 linux/amd64
2:32:17 PM: go version go1.16.5 linux/amd64
2:32:17 PM: Installing missing commands
2:32:17 PM: Verify run directory
2:32:18 PM: ​
2:32:18 PM: ────────────────────────────────────────────────────────────────
2:32:18 PM: Netlify Build
2:32:18 PM: ────────────────────────────────────────────────────────────────
2:32:18 PM: ​
2:32:18 PM: ❯ Version
2:32:18 PM: @netlify/build 26.2.0
2:32:18 PM: ​
2:32:18 PM: ❯ Flags
2:32:18 PM: baseRelDir: true
2:32:18 PM: buildId: 61e9b8b32dcce47ba4431a0d
2:32:18 PM: deployId: 61e9b8b32dcce47ba4431a0f
2:32:18 PM: ​
2:32:18 PM: ❯ Current directory
2:32:18 PM: /opt/build/repo
2:32:18 PM: ​
2:32:18 PM: ❯ Config file
2:32:18 PM: No config file was defined: using default values.
2:32:18 PM: ​
2:32:18 PM: ❯ Context
2:32:18 PM: production
2:32:18 PM: ​
2:32:18 PM: ────────────────────────────────────────────────────────────────
2:32:18 PM: 1. Build command from Netlify app
2:32:18 PM: ────────────────────────────────────────────────────────────────
2:32:18 PM: ​
2:32:18 PM: $ npm run build
2:32:19 PM: npm ERR! code ENOENT
2:32:19 PM: npm ERR! syscall open
2:32:19 PM: npm ERR! path /opt/build/repo/package.json
2:32:19 PM: npm ERR! errno -2
2:32:19 PM: npm ERR! enoent ENOENT: no such file or directory, open ‘/opt/build/repo/package.json’
2:32:19 PM: npm ERR! enoent This is related to npm not being able to find a file.
2:32:19 PM: npm ERR! enoent
2:32:19 PM: npm ERR! A complete log of this run can be found in:
2:32:19 PM: npm ERR! /opt/buildhome/.npm/_logs/2022-01-20T19_32_19_362Z-debug.log
2:32:19 PM: ​
2:32:19 PM: ────────────────────────────────────────────────────────────────
2:32:19 PM: “build.command” failed
2:32:19 PM: ────────────────────────────────────────────────────────────────
2:32:19 PM: ​
2:32:19 PM: Error message
2:32:19 PM: Command failed with exit code 254: npm run build
2:32:19 PM: ​
2:32:19 PM: Error location
2:32:19 PM: In Build command from Netlify app:
2:32:19 PM: npm run build
2:32:19 PM: ​
2:32:19 PM: Resolved config
2:32:19 PM: build:
2:32:19 PM: base: /opt/build/repo
2:32:19 PM: command: npm run build
2:32:19 PM: commandOrigin: ui
2:32:19 PM: publish: /opt/build/repo/build
2:32:19 PM: publishOrigin: ui
2:32:19 PM: Caching artifacts
2:32:19 PM: Started saving build plugins
2:32:19 PM: Finished saving build plugins
2:32:19 PM: Started saving pip cache
2:32:19 PM: Finished saving pip cache
2:32:19 PM: Started saving emacs cask dependencies
2:32:19 PM: Finished saving emacs cask dependencies
2:32:19 PM: Started saving maven dependencies
2:32:19 PM: Finished saving maven dependencies
2:32:19 PM: Started saving boot dependencies
2:32:19 PM: Finished saving boot dependencies
2:32:19 PM: Started saving rust rustup cache
2:32:19 PM: Finished saving rust rustup cache
2:32:19 PM: Started saving go dependencies
2:32:19 PM: Finished saving go dependencies
2:32:22 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
2:32:22 PM: Creating deploy upload records
2:32:22 PM: Failing build: Failed to build site
2:32:22 PM: Failed during stage ‘building site’: Build script returned non-zero exit code: 2
2:32:22 PM: Finished processing build request in 16.325094354s

Hi @nftyler

The issue here is the same as that in Build.command failed, "Command failed with exit code 254: CI= npm run build" of which the solution is offered in post #2.

The only difference is instead of nft-minting-app-main the directory in the repository you are deploying is hashlips_nft_minting_dapp-1.0.1.