【问题标题】:GitLab private runner stuck on npm installGitLab 私人跑步者卡在 npm install 上
【发布时间】:2019-04-29 15:56:53
【问题描述】:

我正在尝试使用私有运行器而不是共享运行器在 GitLab.com 上设置 CI 管道。该项目使用 Node,所以我使用的是 node:6 图像。

.gitlab-ci.yml 看起来像这样:

image: node:6

stages:
    - test

javascript_tests:
    stage: test
    script:
        - npm install
        - npm run test:unit
    when: always

跑步者在“跑步”阶段停留了大约 30 分钟,然后才开始输出相关内容:

npm ERR! fetch failed 
http://10.252.156.164:4880/@types%2fjsforce/-/jsforce-1.9.2.tgz
npm WARN retry will retry, error on last attempt: Error: connect ETIMEDOUT 10.252.156.164:4880

我能做些什么来解决这个问题?我认为在 DigitalOcean 液滴上安装 gitlab-runner 是唯一需要担心的事情。

【问题讨论】:

    标签: npm continuous-integration gitlab npm-install gitlab-ci-runner


    【解决方案1】:

    node:latest 替换node:6 解决了这个问题。

    【讨论】:

      猜你喜欢
      • 2021-08-10
      • 1970-01-01
      • 2017-12-29
      • 2021-09-07
      • 1970-01-01
      • 2018-06-15
      • 1970-01-01
      • 2020-06-09
      • 1970-01-01
      相关资源
      最近更新 更多