11:42:58 PM: Downloading https://nodejs.org/dist/v16.14.0/node-v16.14.0-linux-x64.tar.xzβ¦
11:42:53 PM: Build ready to start
11:42:55 PM: build-image version: 122b31996ccaffd45d820a452d6227f8312110cc (focal)
11:42:55 PM: build-image tag: v4.5.3
11:42:55 PM: buildbot version: 9bc48650b0551281ca8258d0c32d371dd2b6993b
11:42:55 PM: Fetching cached dependencies
11:42:55 PM: Failed to fetch cache, continuing with build
11:42:55 PM: Starting to prepare the repo for build
11:42:56 PM: No cached dependencies found. Cloning fresh repo
11:42:56 PM: git clone GitHub - mowaffag17/star
11:42:56 PM: Preparing Git Reference refs/heads/main
11:42:57 PM: Parsing package.json dependencies
11:42:57 PM: Different build dir detected, going to use the one specified in the Netlify configuration file: ββ versus β/β in the Netlify UI
11:42:57 PM: Starting build script
11:42:57 PM: Installing dependencies
11:42:57 PM: Python version set to 2.7
11:42:58 PM: Downloading and installing node v16.14.0β¦
11:42:59 PM: Computing checksum with sha256sum
11:42:59 PM: Checksums matched!
11:43:02 PM: Now using node v16.14.0 (npm v8.3.1)
11:43:02 PM: Started restoring cached build plugins
11:43:02 PM: Finished restoring cached build plugins
11:43:02 PM: Attempting ruby version 2.7.2, read from environment
11:43:04 PM: Using ruby version 2.7.2
11:43:04 PM: Using PHP version 8.0
11:43:04 PM: Started restoring cached go cache
11:43:04 PM: Finished restoring cached go cache
11:43:04 PM: go version go1.16.5 linux/amd64
11:43:04 PM: go version go1.16.5 linux/amd64
11:43:04 PM: Installing missing commands
11:43:04 PM: Verify run directory
11:43:06 PM: β
11:43:06 PM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
11:43:06 PM: Netlify Build
11:43:06 PM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
11:43:06 PM: β
11:43:06 PM: β― Version
11:43:06 PM: @netlify/build 26.3.3
11:43:06 PM: β
11:43:06 PM: β― Flags
11:43:06 PM: baseRelDir: true
11:43:06 PM: buildId: 621012ddda63fd1604a54b36
11:43:06 PM: deployId: 621012ddda63fd1604a54b38
11:43:06 PM: β
11:43:06 PM: β― Current directory
11:43:06 PM: /opt/build/repo
11:43:06 PM: β
11:43:06 PM: β― Config file
11:43:06 PM: No config file was defined: using default values.
11:43:06 PM: β
11:43:06 PM: β― Context
11:43:06 PM: production
11:43:06 PM: β
11:43:06 PM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
11:43:06 PM: 1. Build command from Netlify app
11:43:06 PM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
11:43:06 PM: β
11:43:06 PM: $ npm run build
11:43:07 PM: npm ERR! code ENOENT
11:43:07 PM: npm ERR! syscall open
11:43:07 PM: npm ERR! path /opt/build/repo/package.json
11:43:07 PM: npm ERR! errno -2
11:43:07 PM: npm ERR! enoent ENOENT: no such file or directory, open β/opt/build/repo/package.jsonβ
11:43:07 PM: npm ERR! enoent This is related to npm not being able to find a file.
11:43:07 PM: npm ERR! enoent
11:43:07 PM: npm ERR! A complete log of this run can be found in:
11:43:07 PM: npm ERR! /opt/buildhome/.npm/_logs/2022-02-18T21_43_06_964Z-debug-0.log
11:43:07 PM: β
11:43:07 PM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
11:43:07 PM: βbuild.commandβ failed
11:43:07 PM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
11:43:07 PM: β
11:43:07 PM: Error message
11:43:07 PM: Command failed with exit code 254: npm run build
11:43:07 PM: β
11:43:07 PM: Error location
11:43:07 PM: In Build command from Netlify app:
11:43:07 PM: npm run build
11:43:07 PM: β
11:43:07 PM: Resolved config
11:43:07 PM: build:
11:43:07 PM: base: /opt/build/repo
11:43:07 PM: command: npm run build
11:43:07 PM: commandOrigin: ui
11:43:07 PM: publish: /opt/build/repo/build
11:43:07 PM: publishOrigin: ui
11:43:07 PM: Caching artifacts
11:43:07 PM: Started saving build plugins
11:43:07 PM: Finished saving build plugins
11:43:07 PM: Started saving pip cache
11:43:07 PM: Finished saving pip cache
11:43:07 PM: Started saving emacs cask dependencies
11:43:07 PM: Finished saving emacs cask dependencies
11:43:07 PM: Started saving maven dependencies
11:43:07 PM: Finished saving maven dependencies
11:43:07 PM: Started saving boot dependencies
11:43:07 PM: Finished saving boot dependencies
11:43:07 PM: Started saving rust rustup cache
11:43:07 PM: Finished saving rust rustup cache
11:43:07 PM: Started saving go dependencies
11:43:07 PM: Finished saving go dependencies
11:43:10 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
11:43:10 PM: Creating deploy upload records
11:43:10 PM: Failing build: Failed to build site
11:43:10 PM: Failed during stage βbuilding siteβ: Build script returned non-zero exit code: 2
11:43:10 PM: Finished processing build request in 15.140663166s
Hi there, @echoman
Welcome to the Netlify Forums! Glad you found us before we can help you, we need a little more information on the issues you are facing.
First, have you looked through this resource? It is a compilation of all of our build and deploy resources. This is a good starting point.
If you have worked through those guides and are still encountering issues please share the following information:
- the name of your build instance: βexample-jones.netlify.comβ
- your build settings
- what debugging steps you have already taken
- any additional error messages you have received in your terminal window or in the developer console
Hey @echoman
In addition to the resources Hillary has pointed you to, I also suggest searching these forums for nft-minting-app-main as several users have had the same issue in deploying this Stripes NFT boilerplate and have found a solution.
1 Like