Build script returned non-zero exit code 1 react app build command failed

I need advice to debug deploy Netlify App

11:46:35 PM: Build ready to start

11:46:38 PM: build-image version: 3031d4c9e432fd7016f6279fc9ad706f9205d845
11:46:38 PM: build-image tag: v3.3.17
11:46:38 PM: buildbot version: d2dce75b20e52883432aefbd693a7ea0140bb7af
11:46:38 PM: Fetching cached dependencies
11:46:38 PM: Starting to download cache of 254.2KB
11:46:38 PM: Finished downloading cache in 74.75139ms
11:46:38 PM: Starting to extract cache
11:46:38 PM: Failed to fetch cache, continuing with build
11:46:38 PM: Starting to prepare the repo for build
11:46:38 PM: No cached dependencies found. Cloning fresh repo
11:46:38 PM: git clone GitHub - Nikoobox/nikolayshatalov: The personal website of Nikolay Shatalov | Software Engineer
11:46:41 PM: Preparing Git Reference refs/heads/master
11:46:43 PM: Different publish path detected, going to use the one specified in the Netlify configuration file: β€˜build’ versus β€˜build/’ in the Netlify UI
11:46:43 PM: Starting build script
11:46:43 PM: Installing dependencies
11:46:43 PM: Python version set to 2.7
11:46:44 PM: v12.18.0 is already installed.
11:46:45 PM: Now using node v12.18.0 (npm v6.14.4)
11:46:45 PM: Started restoring cached build plugins
11:46:45 PM: Finished restoring cached build plugins
11:46:45 PM: Attempting ruby version 2.7.1, read from environment
11:46:47 PM: Using ruby version 2.7.1
11:46:47 PM: Using PHP version 5.6
11:46:47 PM: 5.2 is already installed.
11:46:47 PM: Using Swift version 5.2
11:46:47 PM: Started restoring cached node modules
11:46:47 PM: Finished restoring cached node modules
11:46:47 PM: Installing NPM modules using NPM version 6.14.4
11:47:23 PM: > node-sass@4.14.1 install /opt/build/repo/node_modules/node-sass
11:47:23 PM: > node scripts/install.js
11:47:24 PM: Downloading binary from https://github.com/sass/node-sass/releases/download/v4.14.1/linux-x64-72_binding.node
11:47:24 PM: Download complete
11:47:24 PM: Binary saved to /opt/build/repo/node_modules/node-sass/vendor/linux-x64-72/binding.node
11:47:24 PM: Caching binary to /opt/buildhome/.npm/node-sass/4.14.1/linux-x64-72_binding.node
11:47:24 PM: > core-js@2.6.11 postinstall /opt/build/repo/node_modules/babel-runtime/node_modules/core-js
11:47:24 PM: > node -e β€œtry{require(β€˜./postinstall’)}catch(e){}”
11:47:25 PM: > core-js@3.6.5 postinstall /opt/build/repo/node_modules/core-js
11:47:25 PM: > node -e β€œtry{require(β€˜./postinstall’)}catch(e){}”
11:47:25 PM: > core-js-pure@3.6.5 postinstall /opt/build/repo/node_modules/core-js-pure
11:47:25 PM: > node -e β€œtry{require(β€˜./postinstall’)}catch(e){}”
11:47:26 PM: > node-sass@4.14.1 postinstall /opt/build/repo/node_modules/node-sass
11:47:26 PM: > node scripts/build.js
11:47:26 PM: Binary found at /opt/build/repo/node_modules/node-sass/vendor/linux-x64-72/binding.node
11:47:26 PM: Testing binary
11:47:26 PM: Binary is fine
11:47:28 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/webpack-dev-server/node_modules/fsevents):
11:47:28 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {β€œos”:β€œdarwin”,β€œarch”:β€œany”} (current: {β€œos”:β€œlinux”,β€œarch”:β€œx64”})
11:47:28 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/watchpack-chokidar2/node_modules/fsevents):
11:47:28 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {β€œos”:β€œdarwin”,β€œarch”:β€œany”} (current: {β€œos”:β€œlinux”,β€œarch”:β€œx64”})
11:47:28 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/jest-haste-map/node_modules/fsevents):
11:47:28 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {β€œos”:β€œdarwin”,β€œarch”:β€œany”} (current: {β€œos”:β€œlinux”,β€œarch”:β€œx64”})
11:47:28 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.2 (node_modules/fsevents):
11:47:28 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.2: wanted {β€œos”:β€œdarwin”,β€œarch”:β€œany”} (current: {β€œos”:β€œlinux”,β€œarch”:β€œx64”})
11:47:28 PM: added 1767 packages from 819 contributors and audited 1771 packages in 39.872s
11:47:30 PM: 62 packages are looking for funding
11:47:30 PM: run npm fund for details
11:47:30 PM: found 1 low severity vulnerability
11:47:30 PM: run npm audit fix to fix them, or npm audit for details
11:47:30 PM: NPM modules installed
11:47:31 PM: Started restoring cached go cache
11:47:31 PM: Finished restoring cached go cache
11:47:31 PM: go version go1.14.4 linux/amd64
11:47:31 PM: go version go1.14.4 linux/amd64
11:47:31 PM: Installing missing commands
11:47:31 PM: Verify run directory
11:47:32 PM: ​
11:47:32 PM: β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
11:47:32 PM: β”‚ Netlify Build β”‚
11:47:32 PM: β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
11:47:32 PM: ​
11:47:32 PM: ❯ Version
11:47:32 PM: @netlify/build 2.0.10
11:47:32 PM: ​
11:47:32 PM: ❯ Flags
11:47:32 PM: deployId: 5ef17b1b6a5503d574f6e9c5
11:47:32 PM: mode: buildbot
11:47:32 PM: ​
11:47:32 PM: ❯ Current directory
11:47:32 PM: /opt/build/repo
11:47:32 PM: ​
11:47:32 PM: ❯ Config file
11:47:32 PM: No config file was defined: using default values.
11:47:32 PM: ​
11:47:32 PM: ❯ Context
11:47:32 PM: production
11:47:32 PM: ​
11:47:32 PM: β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
11:47:32 PM: β”‚ 1. Build command from settings β”‚
11:47:32 PM: β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
11:47:32 PM: ​
11:47:32 PM: $ npm run build
11:47:33 PM: > my-site@0.1.0 build /opt/build/repo
11:47:33 PM: > react-scripts build
11:47:34 PM: Creating an optimized production build…
11:47:52 PM: Failed to compile.
11:47:52 PM:
11:47:52 PM: ./src/components/Projects/projects.scss
11:47:52 PM: SassError: property β€œfrt” must be followed by a β€˜:’
11:47:52 PM: on line 147 of /opt/build/repo/src/components/Projects/projects.scss
11:47:52 PM: >> span {frt
11:47:52 PM: ------------^
11:47:52 PM: npm ERR! code ELIFECYCLE
11:47:52 PM: npm ERR! errno 1
11:47:52 PM: npm ERR! my-site@0.1.0 build: react-scripts build
11:47:52 PM: npm ERR! Exit status 1
11:47:52 PM: npm ERR!
11:47:52 PM: npm ERR! Failed at the my-site@0.1.0 build script.
11:47:52 PM: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
11:47:52 PM: npm ERR! A complete log of this run can be found in:
11:47:52 PM: npm ERR! /opt/buildhome/.npm/_logs/2020-06-23T03_47_52_191Z-debug.log
11:47:52 PM: ​
11:47:52 PM: β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
11:47:52 PM: β”‚ β€œbuild.command” failed β”‚
11:47:52 PM: β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
11:47:52 PM: ​
11:47:52 PM: Error message
11:47:52 PM: Command failed with exit code 1: npm run build
11:47:52 PM: ​
11:47:52 PM: Error location
11:47:52 PM: In Build command from settings:
11:47:52 PM: npm run build
11:47:52 PM: ​
11:47:52 PM: Resolved config
11:47:52 PM: build:
11:47:52 PM: command: npm run build
11:47:52 PM: publish: /opt/build/repo/build
11:47:52 PM: Caching artifacts
11:47:52 PM: Started saving node modules
11:47:52 PM: Finished saving node modules
11:47:52 PM: Started saving build plugins
11:47:52 PM: Finished saving build plugins
11:47:52 PM: Started saving pip cache
11:47:59 PM: Finished saving pip cache
11:47:59 PM: Started saving emacs cask dependencies
11:47:59 PM: Finished saving emacs cask dependencies
11:47:59 PM: Started saving maven dependencies
11:47:59 PM: Finished saving maven dependencies
11:47:59 PM: Started saving boot dependencies
11:47:59 PM: Finished saving boot dependencies
11:47:59 PM: Started saving go dependencies
11:47:59 PM: Finished saving go dependencies
11:48:02 PM: Error running command: Build script returned non-zero exit code: 1
11:48:02 PM: Failing build: Failed to build site
11:48:02 PM: Failed during stage β€˜building site’: Build script returned non-zero exit code: 1
11:48:02 PM: Finished processing build request in 1m24.018526789s

Hey @nikoobox, I think you have a problem in one of your sass files, you might have a typo in project.scss:147

2 Likes

It did work. Thank you so much. First time deploying on Netlify

1 Like

thanks for helping out @jcespinoza!