Nft minting website build commads error I'm getting an error like this can anyone help?

I’m getting an error like this can anyone help?

3:39:03 PM: Build ready to start
3:39:05 PM: build-image version: 122b31996ccaffd45d820a452d6227f8312110cc (focal)
3:39:05 PM: build-image tag: v4.5.3
3:39:05 PM: buildbot version: 7eafb394e33f42f945c880ce4ac17c149867813a
3:39:05 PM: Fetching cached dependencies
3:39:05 PM: Failed to fetch cache, continuing with build
3:39:05 PM: Starting to prepare the repo for build
3:39:05 PM: No cached dependencies found. Cloning fresh repo
3:39:05 PM: git clone GitHub - IMOTAL/dapp: web site dapp
3:39:06 PM: Preparing Git Reference refs/heads/main
3:39:06 PM: Parsing package.json dependencies
3:39:06 PM: Different build dir detected, going to use the one specified in the Netlify configuration file: β€˜β€™ versus β€˜/’ in the Netlify UI
3:39:06 PM: Starting build script
3:39:07 PM: Installing dependencies
3:39:07 PM: Python version set to 2.7
3:39:07 PM: Downloading and installing node v16.14.0…
3:39:07 PM: Downloading https://nodejs.org/dist/v16.14.0/node-v16.14.0-linux-x64.tar.xz…
3:39:08 PM: Computing checksum with sha256sum
3:39:08 PM: Checksums matched!
3:39:10 PM: Now using node v16.14.0 (npm v8.3.1)
3:39:10 PM: Started restoring cached build plugins
3:39:10 PM: Finished restoring cached build plugins
3:39:11 PM: Attempting ruby version 2.7.2, read from environment
3:39:12 PM: Using ruby version 2.7.2
3:39:12 PM: Using PHP version 8.0
3:39:12 PM: Started restoring cached go cache
3:39:12 PM: Finished restoring cached go cache
3:39:12 PM: go version go1.16.5 linux/amd64
3:39:12 PM: go version go1.16.5 linux/amd64
3:39:12 PM: Installing missing commands
3:39:12 PM: Verify run directory
3:39:13 PM: ​
3:39:13 PM: ────────────────────────────────────────────────────────────────
3:39:13 PM: Netlify Build
3:39:13 PM: ────────────────────────────────────────────────────────────────
3:39:13 PM: ​
3:39:13 PM: ❯ Version
3:39:13 PM: @netlify/build 26.4.0
3:39:13 PM: ​
3:39:13 PM: ❯ Flags
3:39:13 PM: baseRelDir: true
3:39:13 PM: buildId: 622c9467da4a557a91c1762f
3:39:13 PM: deployId: 622c9467da4a557a91c17631
3:39:13 PM: ​
3:39:13 PM: ❯ Current directory
3:39:13 PM: /opt/build/repo
3:39:13 PM: ​
3:39:13 PM: ❯ Config file
3:39:13 PM: No config file was defined: using default values.
3:39:13 PM: ​
3:39:13 PM: ❯ Context
3:39:13 PM: production
3:39:13 PM: ​
3:39:13 PM: ────────────────────────────────────────────────────────────────
3:39:13 PM: 1. Build command from Netlify app
3:39:13 PM: ────────────────────────────────────────────────────────────────
3:39:13 PM: ​
3:39:13 PM: $ npm run build
3:39:14 PM: npm ERR! code ENOENT
3:39:14 PM: npm ERR! syscall open
3:39:14 PM: npm ERR! path /opt/build/repo/package.json
3:39:14 PM: npm ERR! errno -2
3:39:14 PM: npm ERR! enoent ENOENT: no such file or directory, open β€˜/opt/build/repo/package.json’
3:39:14 PM: npm ERR! enoent This is related to npm not being able to find a file.
3:39:14 PM: npm ERR! enoent
3:39:14 PM: npm ERR! A complete log of this run can be found in:
3:39:14 PM: npm ERR! /opt/buildhome/.npm/_logs/2022-03-12T12_39_14_139Z-debug-0.log
3:39:14 PM: ​
3:39:14 PM: ────────────────────────────────────────────────────────────────
3:39:14 PM: β€œbuild.command” failed
3:39:14 PM: ────────────────────────────────────────────────────────────────
3:39:14 PM: ​
3:39:14 PM: Error message
3:39:14 PM: Command failed with exit code 254: npm run build
3:39:14 PM: ​
3:39:14 PM: Error location
3:39:14 PM: In Build command from Netlify app:
3:39:14 PM: npm run build
3:39:14 PM: ​
3:39:14 PM: Resolved config
3:39:14 PM: build:
3:39:14 PM: base: /opt/build/repo
3:39:14 PM: command: npm run build
3:39:14 PM: commandOrigin: ui
3:39:14 PM: publish: /opt/build/repo/build
3:39:14 PM: publishOrigin: ui
3:39:14 PM: Caching artifacts
3:39:14 PM: Started saving build plugins
3:39:14 PM: Finished saving build plugins
3:39:14 PM: Started saving pip cache
3:39:14 PM: Finished saving pip cache
3:39:14 PM: Started saving emacs cask dependencies
3:39:14 PM: Finished saving emacs cask dependencies
3:39:16 PM: Creating deploy upload records
3:39:14 PM: Started saving maven dependencies
3:39:14 PM: Finished saving maven dependencies
3:39:14 PM: Started saving boot dependencies
3:39:14 PM: Finished saving boot dependencies
3:39:16 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)
3:39:14 PM: Started saving rust rustup cache
3:39:14 PM: Finished saving rust rustup cache
3:39:14 PM: Started saving go dependencies
3:39:14 PM: Finished saving go dependencies
3:39:16 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
3:39:16 PM: Failing build: Failed to build site
3:39:16 PM: Finished processing build request in 11.524207205s

Hey there, @eskunate :wave:

Welcome to the Netlify Forums. I recommend you check out this Support Guide for common issue when building and some good debugging steps. Additionally, this Support Guide houses a list of all of our build and deploy resources.

You will also find numerous threads about the deployment of this particular NFT script by searching nft-minting-app-main in these forums.

It appears that you do not have a package.json file for npm to download and compile the necessary dependencies. What framework are you using (React, Angular, Vue, etc.)? Is it possible to share the repo?

Try setting the base folder to minting_dapp as that’s where your package.json lives