docker-gitlab-ci-multi-runner icon indicating copy to clipboard operation
docker-gitlab-ci-multi-runner copied to clipboard

npm: command not found

Open sprucify opened this issue 8 years ago • 2 comments

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`

sprucify avatar Jul 01 '17 21:07 sprucify

Hi, use the node docker image:

  • https://docs.gitlab.com/ce/ci/docker/using_docker_build.html
  • https://docs.gitlab.com/ce/ci/docker/using_docker_images.html

digitalLumberjack avatar Jul 01 '17 21:07 digitalLumberjack

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.

sprucify avatar Jul 04 '17 16:07 sprucify