2017-11-06 2 views
0

gitlabを初めて使うjavascriptウェブアプリケーションを構築するために基本的なランナーを設定しようとしています。しかし、このエラーコードを取得し続けると、私はそれが私に失敗に関する情報を与えることはできません。Gitlab - ランナー - 終了ステータス1

[email protected]********:/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

答えて

0

愚かなミス。 gitlabマシンにノード/ npmのインストールが正しくありません。 nvmを使用し、デフォルトノードのバージョンを設定することで問題が解決されます。

まだ奇数ではないメッセージがcommand npm not found

関連する問題