GitLab CI failing with @angular/cli
For some reason, globally installed packages are not added to the PATH and not available. What I'm doing is using relative paths (with recent versions of np executables like ng
are installed in the node_modules/.bin
subfolder)
build:
stage: build
script:
- npm install @angular/cli
- ./node_modules/.bin/ng build -prod