Netlify doesn't like ng in angular and I don't know why maybe its something with github

i am not sure why my site builds in visual studio code but not on netlify when i type the same command netlify does
12:04:18 PM: Netlify Build
12:04:18 PM: ────────────────────────────────────────────────────────────────
12:04:18 PM: ​
12:04:18 PM: ❯ Version
12:04:18 PM: @netlify/build 29.21.1
12:04:18 PM: ​
12:04:18 PM: ❯ Flags
12:04:18 PM: baseRelDir: true
12:04:18 PM: buildId: 650c8566ec180211485a8634
12:04:18 PM: deployId: 650c8566ec180211485a8636
12:04:18 PM: ​
12:04:18 PM: ❯ Current directory
12:04:18 PM: /opt/build/repo/dist
12:04:18 PM: ​
12:04:18 PM: ❯ Config file
12:04:18 PM: No config file was defined: using default values.
12:04:18 PM: ​
12:04:18 PM: ❯ Context
12:04:18 PM: production
12:04:18 PM: ​
12:04:18 PM: Build command from Netlify app
12:04:18 PM: ────────────────────────────────────────────────────────────────
12:04:18 PM: ​
12:04:18 PM: $ ng build --prod
12:04:18 PM: bash: ng: command not found
12:04:18 PM: ​
12:04:18 PM: build.command failed
12:04:18 PM: ────────────────────────────────────────────────────────────────
12:04:18 PM: ​
12:04:18 PM: Error message
12:04:18 PM: Command failed with exit code 127: ng build --prod (Search results for '"non-zero exit code: 127"' - Netlify Support Forums)
12:04:18 PM: ​
12:04:18 PM: Error location
12:04:18 PM: In Build command from Netlify app:
12:04:18 PM: ng build --prod
12:04:18 PM: ​
12:04:18 PM: Resolved config
12:04:18 PM: build:
12:04:18 PM: base: /opt/build/repo/dist
12:04:18 PM: command: ng build --prod
12:04:18 PM: commandOrigin: ui
12:04:18 PM: publish: /opt/build/repo/dist/cc_website
12:04:18 PM: publishOrigin: ui
12:04:19 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)
12:04:19 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
12:04:19 PM: Failing build: Failed to build site
12:04:20 PM: Finished processing build request in 21.703s

it says it can’t find

3:58:31 PM: $ ng build --prod
3:58:31 PM: bash: ng: command not found
3:58:31 PM: ​
3:58:31 PM: build.command failed

so its like ng build doesn’t work

deploys from here https://github.com/Jydi-Tech/CT_WS
the last time i fixed it by doing something like directly uploading it from visual studio or something i forget

okay i figured out this one.

i had to change my configuration settings where the base folder was empty not dist. now i just have to clear the warnings

Oh that’s awesome! Thanks for coming back and sharing you found your solution. Happy building! :rocket: