gpt4 book ai didi

javascript - Gitlab - runner - 退出状态1

转载 作者:行者123 更新时间:2023-11-30 21:01:06 30 4
gpt4 key购买 nike

gitlab 的新手。尝试设置基本的运行者来构建一个 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

最佳答案

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

仍然很奇怪消息不是 command npm not found

关于javascript - Gitlab - runner - 退出状态1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47135290/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com