我只是尝试使用push
在node:9-alpine
docker镜像下安装npm install push
软件包:
holms@debian ~/D/c/l/pkg-utils> gitlab-runner exec docker npm_push --env NPM_USERNAME="$NPM_USERNAME" --env NPM_PASSWORD="$NPM_PASSWORD" --env NPM_URL="https://$NPM_URL" --env NPM_EMAIL="$NPM_EMAIL"
WARNING: You most probably have uncommitted changes.
WARNING: These changes will not be tested.
Running with gitlab-runner 11.0.0 (5396d320)
Using Docker executor with image node:9-alpine ...
Pulling docker image node:9-alpine ...
Using docker image sha256:d09e5c5dcaa069f27c487364470904d0c882ebfc9baa79d90ee3f12ed5ff18dc for node:9-alpine ...
Running on runner--project-0-concurrent-0 via debian...
Cloning repository...
Cloning into '/builds/project-0'...
done.
Checking out 87205e2a as master...
Skipping Git submodules setup
$ apk update
fetch http://dl-cdn.alpinelinux.org/alpine/v3.6/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.6/community/x86_64/APKINDEX.tar.gz
v3.6.2-349-g3f8470627c [http://dl-cdn.alpinelinux.org/alpine/v3.6/main]
v3.6.2-348-gd7f2fbbd6a [http://dl-cdn.alpinelinux.org/alpine/v3.6/community]
OK: 8441 distinct packages available
$ apk add expect git yarn
(1/14) Installing tcl (8.6.6-r0)
(2/14) Installing expect (5.45-r3)
(3/14) Installing ca-certificates (20161130-r2)
(4/14) Installing libssh2 (1.8.0-r1)
(5/14) Installing libcurl (7.60.0-r1)
(6/14) Installing expat (2.2.0-r1)
(7/14) Installing pcre (8.41-r0)
(8/14) Installing git (2.13.7-r0)
(9/14) Installing libcrypto1.0 (1.0.2o-r0)
(10/14) Installing http-parser (2.7.1-r1)
(11/14) Installing libssl1.0 (1.0.2o-r0)
(12/14) Installing libuv (1.11.0-r1)
(13/14) Installing nodejs (6.10.3-r2)
(14/14) Installing yarn (0.23.3-r0)
Executing busybox-1.26.2-r9.trigger
Executing ca-certificates-20161130-r2.trigger
OK: 78 MiB in 27 packages
$ npm i npm@latest -g
^[[1;3C/usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm-cli.js
/usr/local/bin/npx -> /usr/local/lib/node_modules/npm/bin/npx-cli.js
+ npm@6.1.0
added 247 packages, removed 41 packages and updated 129 packages in 14.428s
$ npm install push
npm WARN deprecated fs-promise@0.5.0: Use mz or fs-extra^3.0 with Promise Support
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.3 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! path /builds/project-0/node_modules/push/dist/bin/push
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod
npm ERR! enoent ENOENT: no such file or directory, chmod '/builds/project-0/node_modules/push/dist/bin/push'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2018-06-27T14_30_00_929Z-debug.log
ERROR: Job failed: exit code 254
FATAL: exit code 254