Ng build command failing in gitlab-ci

Hello, we are running an angular app on a Ubuntu Linux server. When trying to build the app using ng build directly on the server we are able to with no issue or error. However, when deploying through gitlab using our .gitlab-ci.yml, it gets to that command and then fails the deployment stating: bash: line 72: ng: command not found. Has anyone ran into this issue before with it working directly on the server but not via the gitlab-ci? Below are a few specs about the set up.

node: 6.11.1
npm: 3.10.10
@angular/cli: 1.2.6

I have followed the update guide found here for the angular cli as well. Thanks for any help or suggestions.