"non-zero exit code: 2"

Please help me solve this issue! It’s my first time using netlify and I’m a newbie at coding, so I don’t understand what my issue is… here’s my deployment failure message:

9:19:25 PM: 1. Build command from Netlify app
9:19:25 PM: ───────────────────────────────────────────────────────
9:19:25 PM: ​
9:19:25 PM: $ npm run build
9:19:25 PM: > alidas-homework-plus-w5@1.0.0 build
9:19:25 PM: > parcel build main.html
9:19:26 PM: :rotating_light: No entries found.
9:19:26 PM: at Bundler.bundle (/opt/build/repo/node_modules/parcel-bundler/src/Bundler.js:275:17)
9:19:27 PM: ​
9:19:27 PM: ───────────────────────────────────────────────────────
9:19:27 PM: “build.command” failed
9:19:27 PM: ───────────────────────────────────────────────────────
9:19:27 PM: ​
9:19:27 PM: Error message
9:19:27 PM: Command failed with exit code 1: npm run build (Search results for '"non-zero exit code: 1"' - Netlify Support Forums)
9:19:27 PM: ​
9:19:27 PM: Error location
9:19:27 PM: In Build command from Netlify app:
9:19:27 PM: npm run build
9:19:27 PM: ​
9:19:27 PM: Resolved config
9:19:27 PM: build:
9:19:27 PM: command: npm run build
9:19:27 PM: commandOrigin: ui
9:19:27 PM: environment:
9:19:27 PM: - CI
9:19:27 PM: publish: /opt/build/repo/dist
9:19:27 PM: publishOrigin: ui

Hey @alida42

Have you looked through this support guide yet?

If you cannot find a solution there, check out

If still unsuccessful, can you share the repository you are deploying from and the build settings show in the Netlify UI?