Build Command Error with npm run build

I’m trying to deploy my page and I’m getting this error.

────────────────────────────────────────────────────────────────
12:23:55 PM: “build.command” failed
12:23:55 PM: ────────────────────────────────────────────────────────────────
12:23:55 PM: ​
12:23:55 PM: Error message
12:23:55 PM: Command failed with exit code 254: npm run build
12:23:55 PM: ​
12:23:55 PM: Error location
12:23:55 PM: In Build command from Netlify app:
12:23:55 PM: npm run build
12:23:55 PM: ​
12:23:55 PM: Resolved config
12:23:55 PM: build:
12:23:55 PM: command: npm run build
12:23:55 PM: commandOrigin: ui
12:23:55 PM: publish: /opt/build/repo/build

Kindly post the full build log.

I’d always suggest starting from this guide, @ToxicMorty2019:

As @hrishikesh asked, the minimum we’d need to advise would be a full build log, but hopefully you can instead answer the questions at the bottom of that post after trying the steps in it to fix your build :slight_smile: