I know it’s well over a month and I hope you found the answer. But for any future readers:
ng command isn’t being found because angular_cli isn’t installed. My work around for this, and I’m not sure it’s the best way to do it, is to add npm install angular-cli
to the npm start script.
EDIT
After learning how to better understand CircleCI I found that adding angular-cli as a dependency takes care of ng
commands, why didn’t I think of this later?
Example circle.yml
machine:
node:
version: 6.8.0
dependencies:
pre:
- npm install npm@latest -g # Should fix bug in ng test
- npm install angular-cli@latest -g
test:
override:
- npm run test