Try this:
node_modules/.bin/ng build
Or better, add a blank "ng": "ng"
line into your scripts
key in package.json and run this:
`npm run ng build`
You could also add this to your path:
export PATH=$PATH:./node_modules/bin
Which would let you run any binary in any npm project you might have.