Im having issues deploying a site on netlify even after deleting the .lock files

my repo

8:15:31 PM: Build ready to start
8:15:33 PM: build-image version: 73def8bb10593b9b818f44989a75ea508018ccb7 (focal)
8:15:33 PM: build-image tag: v4.5.2
8:15:33 PM: buildbot version: e07f38cea73012d29c839c78dec87335277fe704
8:15:34 PM: Fetching cached dependencies
8:15:34 PM: Failed to fetch cache, continuing with build
8:15:34 PM: Starting to prepare the repo for build
8:15:34 PM: No cached dependencies found. Cloning fresh repo
8:15:34 PM: git clone https://github.com/momoh001/urbangeniesnft
8:15:35 PM: Preparing Git Reference refs/heads/main
8:15:35 PM: Parsing package.json dependencies
8:15:35 PM: Different build dir detected, going to use the one specified in the Netlify configuration file: '' versus '/' in the Netlify UI
8:15:36 PM: Starting build script
8:15:36 PM: Installing dependencies
8:15:36 PM: Python version set to 2.7
8:15:36 PM: v16.13.1 is already installed.
8:15:37 PM: Now using node v16.13.1 (npm v8.1.2)
8:15:37 PM: Started restoring cached build plugins
8:15:37 PM: Finished restoring cached build plugins
8:15:37 PM: Attempting ruby version 2.7.2, read from environment
8:15:39 PM: Using ruby version 2.7.2
8:15:39 PM: Using PHP version 8.0
8:15:39 PM: Started restoring cached go cache
8:15:39 PM: Finished restoring cached go cache
8:15:39 PM: go version go1.16.5 linux/amd64
8:15:39 PM: go version go1.16.5 linux/amd64
8:15:39 PM: Installing missing commands
8:15:39 PM: Verify run directory
8:15:41 PM: ​
8:15:41 PM: ────────────────────────────────────────────────────────────────
8:15:41 PM:   Netlify Build                                                 
8:15:41 PM: ────────────────────────────────────────────────────────────────
8:15:41 PM: ​
8:15:41 PM: ❯ Version
8:15:41 PM:   @netlify/build 26.0.2
8:15:41 PM: ​
8:15:41 PM: ❯ Flags
8:15:41 PM:   baseRelDir: true
8:15:41 PM:   buildId: 61c61c535caa39eeba464601
8:15:41 PM:   deployId: 61c61c535caa39eeba464603
8:15:41 PM: ​
8:15:41 PM: ❯ Current directory
8:15:41 PM:   /opt/build/repo
8:15:41 PM: ​
8:15:41 PM: ❯ Config file
8:15:41 PM:   No config file was defined: using default values.
8:15:41 PM: ​
8:15:41 PM: ❯ Context
8:15:41 PM:   production
8:15:41 PM: ​
8:15:41 PM: ────────────────────────────────────────────────────────────────
8:15:41 PM:   1. Build command from Netlify app                             
8:15:41 PM: ────────────────────────────────────────────────────────────────
8:15:41 PM: ​
8:15:41 PM: $ npm run build
8:15:42 PM: npm ERR! code ENOENT
8:15:42 PM: npm ERR! syscall open
8:15:42 PM: npm ERR! path /opt/build/repo/package.json
8:15:42 PM: npm ERR! errno -2
8:15:42 PM: npm ERR! enoent ENOENT: no such file or directory, open '/opt/build/repo/package.json'
8:15:42 PM: npm ERR! enoent This is related to npm not being able to find a file.
8:15:42 PM: npm ERR! enoent
8:15:42 PM: npm ERR! A complete log of this run can be found in:
8:15:42 PM: npm ERR!     /opt/buildhome/.npm/_logs/2021-12-24T19_15_42_418Z-debug.log
8:15:42 PM: ​
8:15:42 PM: ────────────────────────────────────────────────────────────────
8:15:42 PM:   "build.command" failed                                        
8:15:42 PM: ────────────────────────────────────────────────────────────────
8:15:42 PM: ​
8:15:42 PM:   Error message
8:15:42 PM:   Command failed with exit code 254: npm run build
8:15:42 PM: ​
8:15:42 PM:   Error location
8:15:42 PM:   In Build command from Netlify app:
8:15:42 PM:   npm run build
8:15:42 PM: ​
8:15:42 PM:   Resolved config
8:15:42 PM:   build:
8:15:42 PM:     base: /opt/build/repo
8:15:42 PM:     command: npm run build
8:15:42 PM:     commandOrigin: ui
8:15:42 PM:     publish: /opt/build/repo/build
8:15:42 PM:     publishOrigin: ui
8:15:42 PM: Caching artifacts
8:15:42 PM: Started saving build plugins
8:15:42 PM: Finished saving build plugins
8:15:42 PM: Started saving pip cache
8:15:42 PM: Finished saving pip cache
8:15:42 PM: Started saving emacs cask dependencies
8:15:42 PM: Finished saving emacs cask dependencies
8:15:42 PM: Started saving maven dependencies
8:15:42 PM: Finished saving maven dependencies
8:15:42 PM: Started saving boot dependencies
8:15:42 PM: Finished saving boot dependencies
8:15:42 PM: Started saving rust rustup cache
8:15:43 PM: Finished saving rust rustup cache
8:15:43 PM: Started saving go dependencies
8:15:43 PM: Finished saving go dependencies
8:15:45 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
8:15:45 PM: Creating deploy upload records
8:15:45 PM: Failing build: Failed to build site
8:15:45 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2
8:15:45 PM: Finished processing build request in 11.615241111s

Hi @momoh001

This shows there is no package.json file in the root of your repository. Looking at the repository link you provided, the repository is empty.

Previously it appears everything existed in the nft-minting-app-main directory of your repository. What was required in that case was to set the base directory to nft-minting-app-main in the build settings.