Unable to deploy nft-minting-app

hey i did try that and now i am getting this i just copy what you put and put in my settings and i am still getting errs can come one please helo me
10:05:02 PM: ​
10:05:02 PM: $ npm run build
10:05:02 PM: npm ERR! code ENOENT
10:05:02 PM: npm ERR! syscall open
10:05:02 PM: npm ERR! path /opt/build/repo/nft-minting-app-main/package.json
10:05:02 PM: npm ERR! errno -2
10:05:02 PM: npm ERR! enoent ENOENT: no such file or directory, open ‘/opt/build/repo/nft-minting-app-main/package.json’
10:05:02 PM: npm ERR! enoent This is related to npm not being able to find a file.
10:05:02 PM: npm ERR! enoent
10:05:02 PM: npm ERR! A complete log of this run can be found in:
10:05:02 PM: npm ERR! /opt/buildhome/.npm/_logs/2022-02-16T03_05_02_652Z-debug-0.log
10:05:02 PM: ​
10:05:02 PM: ────────────────────────────────────────────────────────────────
10:05:02 PM: “build.command” failed
10:05:02 PM: ────────────────────────────────────────────────────────────────
10:05:02 PM: ​
10:05:02 PM: Error message
10:05:02 PM: Command failed with exit code 254: npm run build
10:05:02 PM: ​
10:05:02 PM: Error location
10:05:02 PM: In Build command from Netlify app:
10:05:02 PM: npm run build
10:05:02 PM: ​
10:05:02 PM: Resolved config
10:05:02 PM: build:
10:05:02 PM: base: /opt/build/repo/nft-minting-app-main
10:05:02 PM: command: npm run build
10:05:02 PM: commandOrigin: ui
10:05:02 PM: publish: /opt/build/repo/nft-minting-app-main/build
10:05:02 PM: publishOrigin: ui
10:05:03 PM: Caching artifacts
10:05:03 PM: Started saving build plugins
10:05:03 PM: Finished saving build plugins
10:05:03 PM: Started saving pip cache
10:05:03 PM: Finished saving pip cache
10:05:03 PM: Started saving emacs cask dependencies
10:05:03 PM: Finished saving emacs cask dependencies
10:05:03 PM: Started saving maven dependencies
10:05:03 PM: Finished saving maven dependencies
10:05:03 PM: Started saving boot dependencies
10:05:03 PM: Finished saving boot dependencies
10:05:03 PM: Started saving rust rustup cache
10:05:03 PM: Finished saving rust rustup cache
10:05:03 PM: Started saving go dependencies
10:05:03 PM: Finished saving go dependencies
10:05:05 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
10:05:05 PM: Creating deploy upload records
10:05:05 PM: Failing build: Failed to build site
10:05:05 PM: Failed during stage ‘building site’: Build script returned non-zero exit code: 2
10:05:05 PM: Finished processing build request in 11.355685667s

Hi @muhammad234

I have moved your post to a new thread.

Can you please share the repository you are deploying from.

10:02:46 PM: Build ready to start
10:04:54 PM: build-image version: 122b31996ccaffd45d820a452d6227f8312110cc (focal)
10:04:54 PM: build-image tag: v4.5.3
10:04:54 PM: buildbot version: 25fcfe2826afed3a7b9532f47a1782777298db51
10:04:54 PM: Building without cache
10:04:54 PM: Starting to prepare the repo for build
10:04:54 PM: No cached dependencies found. Cloning fresh repo
10:04:54 PM: git clone https://github.com/Abdullah12354/cats
10:04:55 PM: Preparing Git Reference refs/heads/main
10:04:55 PM: Parsing package.json dependencies
10:04:55 PM: Different publish path detected, going to use the one specified in the Netlify configuration file: ‘nft-minting-app-main/build’ versus ‘build’ in the Netlify UI
10:04:55 PM: Starting build script
10:04:56 PM: Installing dependencies
10:04:56 PM: Python version set to 2.7
10:04:56 PM: Downloading and installing node v16.14.0…
10:04:56 PM: Downloading https://nodejs.org/dist/v16.14.0/node-v16.14.0-linux-x64.tar.xz
10:04:57 PM: Computing checksum with sha256sum
10:04:57 PM: Checksums matched!
10:04:59 PM: Now using node v16.14.0 (npm v8.3.1)
10:04:59 PM: Started restoring cached build plugins
10:04:59 PM: Finished restoring cached build plugins
10:04:59 PM: Attempting ruby version 2.7.2, read from environment
10:05:00 PM: Using ruby version 2.7.2
10:05:01 PM: Using PHP version 8.0
10:05:01 PM: Started restoring cached go cache
10:05:01 PM: Finished restoring cached go cache
10:05:01 PM: go version go1.16.5 linux/amd64
10:05:01 PM: go version go1.16.5 linux/amd64
10:05:01 PM: Installing missing commands
10:05:01 PM: Verify run directory
10:05:02 PM: ​
10:05:02 PM: ────────────────────────────────────────────────────────────────
10:05:02 PM: Netlify Build
10:05:02 PM: ────────────────────────────────────────────────────────────────
10:05:02 PM: ​
10:05:02 PM: ❯ Version
10:05:02 PM: @netlify/build 26.3.2
10:05:02 PM: ​
10:05:02 PM: ❯ Flags
10:05:02 PM: baseRelDir: true
10:05:02 PM: buildId: 620c6956daf84b6750572902
10:05:02 PM: deployId: 620c6956daf84b6750572904
10:05:02 PM: ​
10:05:02 PM: ❯ Current directory
10:05:02 PM: /opt/build/repo/nft-minting-app-main
10:05:02 PM: ​
10:05:02 PM: ❯ Config file
10:05:02 PM: No config file was defined: using default values.
10:05:02 PM: ​
10:05:02 PM: ❯ Context
10:05:02 PM: production
10:05:02 PM: ​
10:05:02 PM: ────────────────────────────────────────────────────────────────
10:05:02 PM: 1. Build command from Netlify app
10:05:02 PM: ────────────────────────────────────────────────────────────────
10:05:02 PM: ​
10:05:02 PM: $ npm run build
10:05:02 PM: npm ERR! code ENOENT
10:05:02 PM: npm ERR! syscall open
10:05:02 PM: npm ERR! path /opt/build/repo/nft-minting-app-main/package.json
10:05:02 PM: npm ERR! errno -2
10:05:02 PM: npm ERR! enoent ENOENT: no such file or directory, open ‘/opt/build/repo/nft-minting-app-main/package.json’
10:05:02 PM: npm ERR! enoent This is related to npm not being able to find a file.
10:05:02 PM: npm ERR! enoent
10:05:02 PM: npm ERR! A complete log of this run can be found in:
10:05:02 PM: npm ERR! /opt/buildhome/.npm/_logs/2022-02-16T03_05_02_652Z-debug-0.log
10:05:02 PM: ​
10:05:02 PM: ────────────────────────────────────────────────────────────────
10:05:02 PM: “build.command” failed
10:05:02 PM: ────────────────────────────────────────────────────────────────
10:05:02 PM: ​
10:05:02 PM: Error message
10:05:02 PM: Command failed with exit code 254: npm run build
10:05:02 PM: ​
10:05:02 PM: Error location
10:05:02 PM: In Build command from Netlify app:
10:05:02 PM: npm run build
10:05:02 PM: ​
10:05:02 PM: Resolved config
10:05:02 PM: build:
10:05:02 PM: base: /opt/build/repo/nft-minting-app-main
10:05:02 PM: command: npm run build
10:05:02 PM: commandOrigin: ui
10:05:02 PM: publish: /opt/build/repo/nft-minting-app-main/build
10:05:02 PM: publishOrigin: ui
10:05:03 PM: Caching artifacts
10:05:03 PM: Started saving build plugins
10:05:03 PM: Finished saving build plugins
10:05:03 PM: Started saving pip cache
10:05:03 PM: Finished saving pip cache
10:05:03 PM: Started saving emacs cask dependencies
10:05:03 PM: Finished saving emacs cask dependencies
10:05:03 PM: Started saving maven dependencies
10:05:03 PM: Finished saving maven dependencies
10:05:03 PM: Started saving boot dependencies
10:05:03 PM: Finished saving boot dependencies
10:05:03 PM: Started saving rust rustup cache
10:05:03 PM: Finished saving rust rustup cache
10:05:03 PM: Started saving go dependencies
10:05:03 PM: Finished saving go dependencies
10:05:05 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
10:05:05 PM: Creating deploy upload records
10:05:05 PM: Failing build: Failed to build site
10:05:05 PM: Failed during stage ‘building site’: Build script returned non-zero exit code: 2
10:05:05 PM: Finished processing build request in 11.355685667s

Thanks.

The issue is you have put the nft-minting-app inside another nft-minting-app directory so the **Build Settings are incorrect.

Move everything in the nft-minting-app directory up two levels so the package.json and other files/directories are at the root of the repository.

For reference, look at the repository you cloned The-Stripes-NFT/nft-minting-app for the correct repository structure (notice how everything is in the repository root.)

hey can you please like show me a screanshot and i can copy and past in my settiengs i am only 14 and i am happing this problem please sir

hey can you like tell me how and where to do that please sir i am actully really new here

hey sir i think i know what you mea n do i have to upload files to the github indivioual and not in 1 folder which is the nft one ?

You need to move the files on your computer and push to GitHub again.

For reference, this is the original repository

And this is yours

Evenything needs to move from cats/nft-minting-app-main/nft-minting-app-main to cats.

Please also note that NFT apps need to go on the high-performance tier as per this post and this post not on the Free Tier.

hi there muhammad234,

as coel mentioned, we are happy to keep working with you to get your site online, I wanted to let you know that all businesses in the NFT/Crypto space to speak with our sales and solutions team to purchase a contract to ensure that your site is on an appropriate account level for your usage. Our High Performance Edge product is usually a necessity to be able to handle and administer successful launches.

We have seen many, many, many customers who have sites like these get attacked, and on our lower plans, such as Starter and Pro, which you are currently on, these attacks tend to harm our main network, which is unacceptable to us as it endangers our entire business.

We may not be able to keep your site online should an attack on your site harm our network or jeopardize the uptime of other customers. Further, many NFT/Crypto sites have generated bills for thousands and thousands of US dollars worth of bandwidth used during launch, and we do take steps to ensure we get the money we are owed. Please make sure you have the money to pay for these bandwidth charges should they arise.

As you mentioned you are just 14, please think clearly about what you are getting into here and make the smart decision, which might mean not proceeding with this project or finding a different provider, if the above seems unreasonable to you.