简体   繁体   English

Gitlab-Runner-退出状态1

[英]Gitlab - Runner - Exit status 1

New to gitlab. gitlab的新手。 Trying to setup basic runner to build a javascript web app. 尝试设置基本运行器以构建javascript网络应用。 But keep getting this error code and I can't get it to give me any more information on the failure. 但是请继续获取此错误代码,而我无法获得有关该故障的更多信息。

 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 

Silly mistake. 愚蠢的错误。 Bad install of node/npm on gitlab machine. 在gitlab机器上错误地安装了node / npm。 Using nvm and setting default node version fixes the issue. 使用nvm并设置默认节点版本可以解决此问题。

Still odd that the message was not command npm not found 仍然奇怪,消息不是command npm not found

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM