Bash: build: command not found

bash: build: command not found
silver-lollipop-67fcd2

6:09:24 PM: ────────────────────────────────────────────────────────────────
6:09:24 PM: 1. Build command from Netlify app
6:09:24 PM: ────────────────────────────────────────────────────────────────
6:09:24 PM: ​
6:09:24 PM: $ build
6:09:24 PM: bash: build: command not found
6:09:24 PM: ​
6:09:24 PM: ────────────────────────────────────────────────────────────────
6:09:24 PM: “build.command” failed
6:09:24 PM: ────────────────────────────────────────────────────────────────
6:09:24 PM: ​
6:09:24 PM: Error message
6:09:24 PM: Command failed with exit code 127: build (Search results for '"non-zero exit code: 127"' - Netlify Support Forums)
6:09:24 PM: ​
6:09:24 PM: Error location
6:09:24 PM: In Build command from Netlify app:
6:09:24 PM: build
6:09:24 PM: ​
6:09:24 PM: Resolved config
6:09:24 PM: build:
6:09:24 PM: command: build
6:09:24 PM: commandOrigin: ui
6:09:24 PM: publish: /opt/build/repo/public
6:09:24 PM: publishOrigin: ui
6:09:25 PM: Caching artifacts
6:09:25 PM: Started saving node modules
6:09:25 PM: Finished saving node modules
6:09:25 PM: Started saving build plugins
6:09:25 PM: Finished saving build plugins
6:09:25 PM: Started saving pip cache
6:09:25 PM: Finished saving pip cache
6:09:25 PM: Started saving emacs cask dependencies
6:09:25 PM: Finished saving emacs cask dependencies
6:09:27 PM: Creating deploy upload records
6:09:25 PM: Started saving maven dependencies
6:09:25 PM: Finished saving maven dependencies
6:09:25 PM: Started saving boot dependencies
6:09:25 PM: Finished saving boot dependencies
6:09:25 PM: Started saving composer dependencies
6:09:25 PM: Finished saving composer dependencies
6:09:27 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)
6:09:25 PM: Started saving rust rustup cache
6:09:25 PM: Finished saving rust rustup cache
6:09:25 PM: Started saving go dependencies
6:09:25 PM: Finished saving go dependencies
6:09:27 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
6:09:27 PM: Failing build: Failed to build site
6:09:27 PM: Finished processing build request in 46.007550089s

Hey @tadeo.alvarez4434

Depending on the project, the chances are the build command you need to use it npm run build, not simply build.