2016-12-28 6 views
0

私はGitlabでホストしていたプロジェクトの依存関係をインストールしようとしており、Runnerはインストールを完了しません。それは依存関係を取得しようとするようですが、常にタイムアウトします。Nit installがGitlab Continuous Integrationで成功しません

image: node:4.6.0 

test_job: 
    script: 
    - hostname 
    - npm config list 
    - npm install 
    - echo "After install" 
only: 
- master 

出力は次のようになります:

npm info attempt registry request try #3 at 3:06:54 PM 
npm http request GET https://registry.npmjs.org/babel-register 
npm info attempt registry request try #3 at 3:06:54 PM 
npm http request GET https://registry.npmjs.org/babel-preset-stage-2 
npm info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.12.162:443 
npm info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.12.162:443 

そして最後に、パッケージを取得しようとの15分後:

npm ERR! Linux 4.4.19-rancher 
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" 
npm ERR! node v4.6.0 
npm ERR! npm v2.15.9 
npm ERR! code ETIMEDOUT 
npm ERR! errno ETIMEDOUT 
npm ERR! syscall connect 

npm ERR! network connect ETIMEDOUT 151.101.12.162:443 
npm ERR! network This is most likely not a problem with npm itself 
npm ERR! network and is related to network connectivity. 
npm ERR! network In most cases you are behind a proxy or have bad network settings. 
npm ERR! network 
npm ERR! network If you are behind a proxy, please make sure that the 
npm ERR! network 'proxy' config is set properly. See: 'npm help config' 

私は考えていないここに私の.gitlab-ci.ymlファイルがありますこのRunnerはGitlabによってホストされているDockerコンテナで実行されているため、これはプロキシの問題ですが、それ以外の問題は何か分かりません。なぜ、npm installがこのように一貫して失敗するのでしょうか?

+0

おそらくnpmjs.orgがダウンしていました。私はNPMと複数のプロジェクトを持っており、すべて正常に動作しています。後でそれをやり直しましたか? – mohamnag

+0

もう一度試してみましたが、まだタイムアウトエラーが発生しています。 – rafafan2010

答えて

0

私の会社には、npmパッケージに使用するための特定のミラーがありました。私がそれを設定すると、すべてうまくいった。

関連する問題