首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Gitlab - Runner -退出状态1

Gitlab - Runner -退出状态1
EN

Stack Overflow用户
提问于 2017-11-06 18:55:45
回答 1查看 1.2K关注 0票数 1

gitlab新手。正在尝试设置basic runner以构建javascript web应用程序。但是一直得到这个错误代码,我不能让它给我提供更多关于失败的信息。

代码语言:javascript
复制
ubuntu@********:/home/gitlab-runner/builds/bd82d0d6/0/${username}/${projectname}$ gitlab-runner --debug exec shell build-site
Runtime platform                                    arch=amd64 os=linux revision=96b34cc version=9.5.1
Running with gitlab-ci-multi-runner 9.5.1 (96b34cc)
  on  ()
Shell configuration: environment: []
dockercommand:
- sh
- -c
- "if [ -x /usr/local/bin/bash ]; then\n\texec /usr/local/bin/bash --login\nelif [
  -x /usr/bin/bash ]; then\n\texec /usr/bin/bash --login\nelif [ -x /bin/bash ]; then\n\texec
  /bin/bash --login\nelif [ -x /usr/local/bin/sh ]; then\n\texec /usr/local/bin/sh
  --login\nelif [ -x /usr/bin/sh ]; then\n\texec /usr/bin/sh --login\nelif [ -x /bin/sh
  ]; then\n\texec /bin/sh --login\nelse\n\techo shell not found\n\texit 1\nfi\n\n"
command: bash
arguments:
- --login
passfile: false
extension: ""
  job=1 project=0
Using Shell executor...
Waiting for signals...                              job=1 project=0
Running on ip-10-214-239-156...
Cloning repository...
Cloning into '/home/gitlab-runner/builds/bd82d0d6/0/${username}/${project}/builds/0/project-0'...
done.
Checking out 69fe5296 as HEAD...
Skipping Git submodules setup
$ npm install --verbose --debug
Running after script...
ERROR: Job failed: exit status 1
FATAL: exit status 1

EN

回答 1

Stack Overflow用户

发布于 2017-11-06 20:03:27

愚蠢的错误。gitlab计算机上的node/npm安装错误。使用nvm并设置默认节点版本可以解决此问题。

奇怪的是,这条消息不是command npm not found

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/47135290

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档