Home
Support Forums

Help me in uploading Netlify

3:48:04 PM: v16.13.1 is already installed.
3:47:57 PM: Build ready to start
3:48:00 PM: build-image version: 73def8bb10593b9b818f44989a75ea508018ccb7 (focal)
3:48:00 PM: build-image tag: v4.5.2
3:48:00 PM: buildbot version: ff9e2433dccff2a568f42fdd27a8e92c84c8a325
3:48:01 PM: Fetching cached dependencies
3:48:01 PM: Failed to fetch cache, continuing with build
3:48:01 PM: Starting to prepare the repo for build
3:48:01 PM: No cached dependencies found. Cloning fresh repo
3:48:01 PM: git clone GitHub - SakitaInu/PANDA.github.io
3:48:02 PM: Preparing Git Reference refs/heads/main
3:48:03 PM: Parsing package.json dependencies
3:48:03 PM: Different build dir detected, going to use the one specified in the Netlify configuration file: ‘’ versus ‘/’ in the Netlify UI
3:48:04 PM: Starting build script
3:48:04 PM: Installing dependencies
3:48:04 PM: Python version set to 2.7
3:48:05 PM: Now using node v16.13.1 (npm v8.1.2)
3:48:05 PM: Started restoring cached build plugins
3:48:05 PM: Finished restoring cached build plugins
3:48:05 PM: Attempting ruby version 2.7.2, read from environment
3:48:06 PM: Using ruby version 2.7.2
3:48:07 PM: Using PHP version 8.0
3:48:07 PM: Started restoring cached go cache
3:48:07 PM: Finished restoring cached go cache
3:48:07 PM: go version go1.16.5 linux/amd64
3:48:07 PM: go version go1.16.5 linux/amd64
3:48:07 PM: Installing missing commands
3:48:07 PM: Verify run directory
3:48:08 PM: ​
3:48:08 PM: ────────────────────────────────────────────────────────────────
3:48:08 PM: Netlify Build
3:48:08 PM: ────────────────────────────────────────────────────────────────
3:48:08 PM: ​
3:48:08 PM: ❯ Version
3:48:08 PM: @netlify/build 26.1.0
3:48:08 PM: ​
3:48:08 PM: ❯ Flags
3:48:08 PM: baseRelDir: true
3:48:08 PM: buildId: 61dc07d59d115d43fa790bb4
3:48:08 PM: deployId: 61dc07d59d115d43fa790bb6
3:48:08 PM: ​
3:48:08 PM: ❯ Current directory
3:48:08 PM: /opt/build/repo
3:48:08 PM: ​
3:48:08 PM: ❯ Config file
3:48:08 PM: No config file was defined: using default values.
3:48:08 PM: ​
3:48:08 PM: ❯ Context
3:48:08 PM: production
3:48:08 PM: ​
3:48:08 PM: ────────────────────────────────────────────────────────────────
3:48:08 PM: 1. Build command from Netlify app
3:48:08 PM: ────────────────────────────────────────────────────────────────
3:48:08 PM: ​
3:48:08 PM: $ npm run build
3:48:09 PM: npm ERR! code ENOENT
3:48:09 PM: npm ERR! syscall open
3:48:09 PM: npm ERR! path /opt/build/repo/package.json
3:48:09 PM: npm ERR! errno -2
3:48:09 PM: npm ERR! enoent ENOENT: no such file or directory, open ‘/opt/build/repo/package.json’
3:48:09 PM: npm ERR! enoent This is related to npm not being able to find a file.
3:48:09 PM: npm ERR! enoent
3:48:09 PM: npm ERR! A complete log of this run can be found in:
3:48:09 PM: npm ERR! /opt/buildhome/.npm/_logs/2022-01-10T10_18_09_283Z-debug.log
3:48:09 PM: ​
3:48:09 PM: ────────────────────────────────────────────────────────────────
3:48:09 PM: “build.command” failed
3:48:09 PM: ────────────────────────────────────────────────────────────────
3:48:09 PM: ​
3:48:09 PM: Error message
3:48:09 PM: Command failed with exit code 254: npm run build
3:48:09 PM: ​
3:48:09 PM: Error location
3:48:09 PM: In Build command from Netlify app:
3:48:09 PM: npm run build
3:48:09 PM: ​
3:48:09 PM: Resolved config
3:48:09 PM: build:
3:48:09 PM: base: /opt/build/repo
3:48:09 PM: command: npm run build
3:48:09 PM: commandOrigin: ui
3:48:09 PM: environment:
3:48:09 PM: - CI
3:48:09 PM: publish: /opt/build/repo/build
3:48:09 PM: publishOrigin: ui
3:48:09 PM: Caching artifacts
3:48:09 PM: Started saving build plugins
3:48:09 PM: Finished saving build plugins
3:48:09 PM: Started saving pip cache
3:48:09 PM: Finished saving pip cache
3:48:09 PM: Started saving emacs cask dependencies
3:48:09 PM: Finished saving emacs cask dependencies
3:48:09 PM: Started saving maven dependencies
3:48:09 PM: Finished saving maven dependencies
3:48:09 PM: Started saving boot dependencies
3:48:09 PM: Finished saving boot dependencies
3:48:09 PM: Started saving rust rustup cache
3:48:09 PM: Finished saving rust rustup cache
3:48:09 PM: Started saving go dependencies
3:48:09 PM: Finished saving go dependencies
3:48:11 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
3:48:11 PM: Creating deploy upload records
3:48:11 PM: Failing build: Failed to build site
3:48:11 PM: Failed during stage ‘building site’: Build script returned non-zero exit code: 2
3:48:11 PM: Finished processing build request in 11.09181443s

Hi there, @Ayushgarg :wave:

Welcome to Netlify! We’ll need more information in order to help you here.

Please tell us:

  • the name of your build instance: “example-jones.netlify.com
  • what you are hoping to accomplish ie: “host my portfolio, build a game, etc.”
  • the issue you are encountering
  • what you have already tried to fix this issue
  • any error messages you have received in your terminal window or in the developer console

Thanks!