Portfolio website:- Failed during stage 'building site': Build script returned non-zero exit code: 2

Hi everyone, I am newbie to netlify and cannot identify the error or resolve it. Failed during stage ‘building site’: Build script returned non-zero exit code: 2 this is the error I am facing.
My website is made with the help of HTML5, JS and CSS.

8:44:10 AM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
8:44:00 AM: build-image version: 310cc3c813338a2ca47a215a1ab6889dc6ff6cb7 (focal)
8:44:00 AM: buildbot version: d59e91ad7b9655bc2253d9308f8d23584a0c6ed8
8:44:00 AM: Fetching cached dependencies
8:44:00 AM: Failed to fetch cache, continuing with build
8:44:00 AM: Starting to prepare the repo for build
8:44:00 AM: No cached dependencies found. Cloning fresh repo
8:44:00 AM: git clone --filter=blob:none https://github.com/Aryan-Singh-1017/Portfolio-Website
8:44:01 AM: Preparing Git Reference refs/heads/main
8:44:02 AM: Starting to install dependencies
8:44:02 AM: Python version set to 3.8
8:44:02 AM: Attempting Ruby version 2.7.2, read from environment
8:44:03 AM: Using Ruby version 2.7.2
8:44:04 AM: Started restoring cached go cache
8:44:04 AM: Finished restoring cached go cache
8:44:04 AM: go version go1.19.11 linux/amd64
8:44:04 AM: Using PHP version 8.0
8:44:05 AM: v18.16.1 is already installed.
8:44:05 AM: Now using node v18.16.1 (npm v9.5.1)
8:44:05 AM: Enabling Node.js Corepack
8:44:05 AM: Started restoring cached build plugins
8:44:05 AM: Finished restoring cached build plugins
8:44:06 AM: Install dependencies script success
8:44:06 AM: Starting build script
8:44:06 AM: Detected 0 framework(s)
8:44:06 AM: Section completed: initializing
8:44:08 AM: ​
8:44:08 AM: Netlify Build                                                 
8:44:08 AM: ────────────────────────────────────────────────────────────────
8:44:08 AM: ​
8:44:08 AM: ❯ Version
8:44:08 AM:   @netlify/build 29.16.0
8:44:08 AM: ​
8:44:08 AM: ❯ Flags
8:44:08 AM:   baseRelDir: true
8:44:08 AM:   buildId: 64b4b1de29229920c5067a21
8:44:08 AM:   deployId: 64b4b1de29229920c5067a23
8:44:08 AM: ​
8:44:08 AM: ❯ Current directory
8:44:08 AM:   /opt/build/repo
8:44:08 AM: ​
8:44:08 AM: ❯ Config file
8:44:08 AM:   No config file was defined: using default values.
8:44:08 AM: ​
8:44:08 AM: ❯ Context
8:44:08 AM:   production
8:44:08 AM: ​
8:44:08 AM: Build command from Netlify app                                
8:44:08 AM: ────────────────────────────────────────────────────────────────
8:44:08 AM: ​
8:44:08 AM: $ npm run build
8:44:08 AM: npm ERR! code ENOENT
8:44:08 AM: npm ERR! syscall open
8:44:08 AM: npm ERR! path /opt/build/repo/package.json
8:44:08 AM: npm ERR! errno -2
8:44:08 AM: npm ERR! enoent ENOENT: no such file or directory, open '/opt/build/repo/package.json'
8:44:08 AM: npm ERR! enoent This is related to npm not being able to find a file.
8:44:08 AM: npm ERR! enoent
8:44:08 AM: npm ERR! A complete log of this run can be found in:
8:44:08 AM: npm ERR!     /opt/buildhome/.npm/_logs/2023-07-17T03_14_08_813Z-debug-0.log
8:44:08 AM: ​
8:44:08 AM: build.command failed                                        
8:44:08 AM: ────────────────────────────────────────────────────────────────
8:44:08 AM: ​
8:44:08 AM:   Error message
8:44:08 AM:   Command failed with exit code 254: npm run build (https://ntl.fyi/exit-code-254)
8:44:08 AM: ​
8:44:08 AM:   Error location
8:44:08 AM:   In Build command from Netlify app:
8:44:08 AM:   npm run build
8:44:08 AM: ​
8:44:08 AM:   Resolved config
8:44:08 AM:   build:
8:44:08 AM:     command: npm run build
8:44:08 AM:     commandOrigin: ui
8:44:08 AM:     publish: /opt/build/repo/build
8:44:08 AM:     publishOrigin: ui
8:44:09 AM: Caching artifacts
8:44:09 AM: Started saving build plugins
8:44:09 AM: Finished saving build plugins
8:44:09 AM: Started saving pip cache
8:44:09 AM: Finished saving pip cache
8:44:09 AM: Started saving emacs cask dependencies
8:44:09 AM: Finished saving emacs cask dependencies
8:44:09 AM: Started saving maven dependencies
8:44:09 AM: Finished saving maven dependencies
8:44:09 AM: Started saving boot dependencies
8:44:09 AM: Finished saving boot dependencies
8:44:09 AM: Started saving rust rustup cache
8:44:09 AM: Finished saving rust rustup cache
8:44:09 AM: Started saving go dependencies
8:44:09 AM: Finished saving go dependencies
8:44:10 AM: Build failed due to a user error: Build script returned non-zero exit code: 2
8:44:10 AM: Failing build: Failed to build site
8:44:11 AM: Finished processing build request in 10.584s

this is the issue . Would be greatful if some one could help

Hi, your build is failing because there is noting in your build setting. Please take a look at the guide below to help you debug. (: