# Build.command failed

**URL:** <https://answers.netlify.com/t/build-command-failed/76596>\
**Category:** Support\
**Tags:** create-react-app, building, netlify-newbie, deployment\
**Created:** [October 2, 2022, 11:00am UTC](https://answers.netlify.com/t/build-command-failed/76596 "2022-10-02T11:00:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![astrid595](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/astrid595/32/41659_2.png) [@astrid595](https://answers.netlify.com/u/astrid595)\
**Post date:** [October 2, 2022, 11:00am UTC](https://answers.netlify.com/t/build-command-failed/76596/1 "2022-10-02T11:00:49Z")

</div>

Anyone can understand what I can do with the problems shown in line 121 to 134? thanks

9:53:53 PM: To address all issues (including breaking changes), run:  
9:53:53 PM: npm audit fix --force  
9:53:53 PM: Run `npm audit` for details.  
9:53:53 PM: NPM modules installed  
9:53:53 PM: npm WARN config tmp This setting is no longer used. npm stores temporary files in a special  
9:53:53 PM: npm WARN config location in the cache, and they are managed by  
9:53:53 PM: npm WARN config [`cacache`](http://npm.im/cacache).  
9:53:53 PM: Started restoring cached go cache  
9:53:53 PM: Finished restoring cached go cache  
9:53:53 PM: Installing Go version 1.17 (requested 1.17)  
9:53:57 PM: unset GOOS;  
9:53:57 PM: unset GOARCH;  
9:53:57 PM: export GOROOT=‘/opt/buildhome/.gimme/versions/go1.17.linux.amd64’;  
9:53:57 PM: export PATH=“/opt/buildhome/.gimme/versions/go1.17.linux.amd64/bin:${PATH}”;  
9:53:57 PM: go version \>&2;  
9:53:57 PM: export GIMME\_ENV=“/opt/buildhome/.gimme/env/go1.17.linux.amd64.env”  
9:53:57 PM: go version go1.17 linux/amd64  
9:53:57 PM: Installing missing commands  
9:53:57 PM: Verify run directory  
9:53:58 PM: ​  
9:53:58 PM: ────────────────────────────────────────────────────────────────  
9:53:58 PM: Netlify Build  
9:53:58 PM: ────────────────────────────────────────────────────────────────  
9:53:58 PM: ​  
9:53:58 PM: ❯ Version  
9:53:58 PM: @netlify/build 27.18.6  
9:53:58 PM: ​  
9:53:58 PM: ❯ Flags  
9:53:58 PM: baseRelDir: true  
9:53:58 PM: buildId: 63396d85f4edc0406666fa57  
9:53:58 PM: deployId: 63396d85f4edc0406666fa59  
9:53:58 PM: ​  
9:53:58 PM: ❯ Current directory  
9:53:58 PM: /opt/build/repo  
9:53:58 PM: ​  
9:53:58 PM: ❯ Config file  
9:53:58 PM: No config file was defined: using default values.  
9:53:58 PM: ​  
9:53:58 PM: ❯ Context  
9:53:58 PM: production  
9:53:58 PM: ​  
9:53:58 PM: ────────────────────────────────────────────────────────────────  
9:53:58 PM: 1. Build command from Netlify app  
9:53:58 PM: ────────────────────────────────────────────────────────────────  
9:53:58 PM: ​  
9:53:58 PM: $ npm run build  
9:53:58 PM: npm WARN config tmp This setting is no longer used. npm stores temporary files in a special  
9:53:58 PM: npm WARN config location in the cache, and they are managed by  
9:53:58 PM: npm WARN config [`cacache`](http://npm.im/cacache).  
9:53:58 PM: npm ERR! Missing script: “build”  
9:53:58 PM: npm ERR!  
9:53:58 PM: npm ERR! To see a list of scripts, run:  
9:53:58 PM: npm ERR! npm run  
9:53:58 PM: npm ERR! A complete log of this run can be found in:  
9:53:58 PM: npm ERR! /opt/buildhome/.npm/\_logs/2022-10-02T10\_53\_58\_755Z-debug-0.log  
9:53:58 PM: ​  
9:53:58 PM: ────────────────────────────────────────────────────────────────  
9:53:58 PM: “build.command” failed  
9:54:00 PM: Creating deploy upload records  
9:53:58 PM: ────────────────────────────────────────────────────────────────  
9:53:58 PM: ​  
9:53:58 PM: Error message  
9:53:58 PM: Command failed with exit code 1: npm run build ([Search results for '"non-zero exit code: 1"' - Netlify Support Forums](https://ntl.fyi/exit-code-1))  
9:54:00 PM: Failed during stage ‘building site’: Build script returned non-zero exit code: 2 ([Search results for '"non-zero exit code: 2"' - Netlify Support Forums](https://ntl.fyi/exit-code-2))  
9:53:58 PM: ​  
9:53:58 PM: Error location  
9:53:58 PM: In Build command from Netlify app:  
9:53:58 PM: npm run build  
9:53:58 PM: ​  
9:53:58 PM: Resolved config  
9:53:58 PM: build:  
9:53:58 PM: command: npm run build  
9:53:58 PM: commandOrigin: ui  
9:53:58 PM: publish: /opt/build/repo/build  
9:53:58 PM: publishOrigin: ui  
9:53:59 PM: Caching artifacts  
9:53:59 PM: Started saving node modules  
9:53:59 PM: Finished saving node modules  
9:53:59 PM: Started saving build plugins  
9:53:59 PM: Finished saving build plugins  
9:53:59 PM: Started saving pip cache  
9:53:59 PM: Finished saving pip cache  
9:53:59 PM: Started saving emacs cask dependencies  
9:53:59 PM: Finished saving emacs cask dependencies  
9:53:59 PM: Started saving maven dependencies  
9:53:59 PM: Finished saving maven dependencies  
9:53:59 PM: Started saving boot dependencies  
9:53:59 PM: Finished saving boot dependencies  
9:53:59 PM: Started saving rust rustup cache  
9:53:59 PM: Finished saving rust rustup cache  
9:53:59 PM: Started saving go dependencies  
9:53:59 PM: Finished saving go dependencies  
9:54:00 PM: Build failed due to a user error: Build script returned non-zero exit code: 2  
9:54:00 PM: Failing build: Failed to build site  
9:54:00 PM: Finished processing build request in 29.144919838s

---

<div class="post-metadata">

**Author:** ![hrishikesh](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/hrishikesh/32/74607_2.png) [@hrishikesh](https://answers.netlify.com/u/hrishikesh)\
**Post date:** [October 2, 2022, 11:57am UTC](https://answers.netlify.com/t/build-command-failed/76596/2 "2022-10-02T11:57:44Z")

</div>

> [@astrid595](#):
>
> 9:53:58 PM: npm ERR! Missing script: “build”

There’s no script named `build` in your `package.json`.
