sameersbn / docker-gitlab-ci-multi-runner

MIT License
146 stars 87 forks source link

npm: command not found #41

Open sprucify opened 7 years ago

sprucify commented 7 years ago

I would like to setup an angular deploy. No matter the executor I select (shell or docker) I get the following output.

`gitlab-ci-multi-runner 1.1.4 (9e2fd1a) WARNING: image is not supported by selected executor and shell Using Shell executor... Running on 6687502ce71f... Fetching changes... HEAD is now at 42e9d51 Update .gitlab-ci.yml Checking out 42e9d511 as master... HEAD is now at 42e9d51... Update .gitlab-ci.yml Checking cache for default... $ npm prune bash: line 56: npm: command not found

ERROR: Build failed: exit status 1`

digitalLumberjack commented 7 years ago

Hi, use the node docker image:

sprucify commented 7 years ago

I'm not familiar yet what the best practice is for Angular projects. Almost all project examples are Ruby based.

User gitlab_ci_multi_runner is also not a sudoer, so things like sudo npm install can not be done.