happy-swartz-33db5c
Facing build issues, This is a react app, I am trying to build from a master branch, that did not work then I tried building from gh-pages branch. This is the error I am facing . Is any one familiar with the same? I had created the app and then I am trying to deploy.
Thank you
6:02:55 PM: Build ready to start
6:02:57 PM: build-image version: b0258b965567defc4a2d7e2f2dec2e00c8f73ad6
6:02:57 PM: build-image tag: v3.4.1
6:02:57 PM: buildbot version: e1f4178b0d9779ebad1b11d5b54739f82fed3c22
6:02:58 PM: Fetching cached dependencies
6:02:58 PM: Failed to fetch cache, continuing with build
6:02:58 PM: Starting to prepare the repo for build
6:02:58 PM: No cached dependencies found. Cloning fresh repo
6:02:58 PM: git clone https://github.com/sahils091/shoppies-intern-web-dev
6:02:59 PM: Preparing Git Reference refs/heads/gh-pages
6:03:00 PM: Starting build script
6:03:00 PM: Installing dependencies
6:03:00 PM: Python version set to 2.7
6:03:01 PM: v12.18.0 is already installed.
6:03:02 PM: Now using node v12.18.0 (npm v6.14.4)
6:03:02 PM: Started restoring cached build plugins
6:03:02 PM: Finished restoring cached build plugins
6:03:02 PM: Attempting ruby version 2.7.1, read from environment
6:03:03 PM: Using ruby version 2.7.1
6:03:03 PM: Using PHP version 5.6
6:03:03 PM: 5.2 is already installed.
6:03:03 PM: Using Swift version 5.2
6:03:03 PM: Started restoring cached go cache
6:03:03 PM: Finished restoring cached go cache
6:03:03 PM: go version go1.14.4 linux/amd64
6:03:03 PM: go version go1.14.4 linux/amd64
6:03:03 PM: Installing missing commands
6:03:03 PM: Verify run directory
6:03:04 PM:
6:03:04 PM: ┌─────────────────────────────┐
6:03:04 PM: │ Netlify Build │
6:03:04 PM: └─────────────────────────────┘
6:03:04 PM:
6:03:04 PM: ❯ Version
6:03:04 PM: @netlify/build 3.3.5
6:03:04 PM:
6:03:04 PM: ❯ Flags
6:03:04 PM: deployId: 5f555c8f9894660661b6e4f4
6:03:04 PM: mode: buildbot
6:03:04 PM:
6:03:04 PM: ❯ Current directory
6:03:04 PM: /opt/build/repo
6:03:04 PM:
6:03:04 PM: ❯ Config file
6:03:04 PM: No config file was defined: using default values.
6:03:04 PM:
6:03:04 PM: ❯ Context
6:03:04 PM: production
6:03:04 PM:
6:03:04 PM: ┌───────────────────────────────────┐
6:03:04 PM: │ 1. Build command from Netlify app │
6:03:04 PM: └───────────────────────────────────┘
6:03:04 PM:
6:03:04 PM: $ npm run build
6:03:05 PM: npm ERR! code ENOENT
6:03:05 PM: npm ERR! syscall open
6:03:05 PM: npm ERR! path /opt/build/repo/package.json
6:03:05 PM: npm ERR! errno -2
6:03:05 PM: npm ERR! enoent ENOENT: no such file or directory, open ‘/opt/build/repo/package.json’
6:03:05 PM: npm ERR! enoent This is related to npm not being able to find a file.
6:03:05 PM: npm ERR! enoent
6:03:05 PM: npm ERR! A complete log of this run can be found in:
6:03:05 PM: npm ERR! /opt/buildhome/.npm/_logs/2020-09-06T22_03_05_150Z-debug.log
6:03:05 PM:
6:03:05 PM: ┌─────────────────────────────┐
6:03:05 PM: │ “build.command” failed │
6:03:05 PM: └─────────────────────────────┘
6:03:05 PM:
6:03:05 PM: Error message
6:03:05 PM: Command failed with exit code 254: npm run build
6:03:05 PM:
6:03:05 PM: Error location
6:03:05 PM: In Build command from Netlify app:
6:03:05 PM: npm run build
6:03:05 PM:
6:03:05 PM: Resolved config
6:03:05 PM: build:
6:03:05 PM: command: npm run build
6:03:05 PM: commandOrigin: ui
6:03:05 PM: Caching artifacts
6:03:05 PM: Started saving build plugins
6:03:05 PM: Finished saving build plugins
6:03:05 PM: Started saving pip cache
6:03:05 PM: Finished saving pip cache
6:03:05 PM: Started saving emacs cask dependencies
6:03:05 PM: Finished saving emacs cask dependencies
6:03:05 PM: Started saving maven dependencies
6:03:05 PM: Finished saving maven dependencies
6:03:05 PM: Started saving boot dependencies
6:03:05 PM: Finished saving boot dependencies
6:03:05 PM: Started saving go dependencies
6:03:05 PM: Finished saving go dependencies
6:03:08 PM: Error running command: Build script returned non-zero exit code: 1
6:03:08 PM: Failing build: Failed to build site
6:03:08 PM: Failed during stage ‘building site’: Build script returned non-zero exit code: 1
6:03:08 PM: Finished processing build request in 10.230569455s