Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save x-yuri/24e0f04acc6b7942e1ec860a554a949f to your computer and use it in GitHub Desktop.
Save x-yuri/24e0f04acc6b7942e1ec860a554a949f to your computer and use it in GitHub Desktop.

UPD see https://gist.github.com/x-yuri/33fdc97fb46d097a50be1f9b7f551db8

Introduced in nodejs-12.11.0 (npm-6.11.3, 2019-09-25), npm-6.11.0, pacote-9.5.5. Affects nodejs-10.17.0, nodejs-12.13.0, nodejs-13.0.1.

$ docker-compose up
Creating network "4_default" with the default driver
Building app
Step 1/4 : FROM node:12.13.0-alpine
12.13.0-alpine: Pulling from library/node
e7c96db7181b: Pull complete
7b373bfb6ac5: Pull complete
fd38342e0337: Pull complete
5269cc77d334: Pull complete
Digest: sha256:e5d8b214c15506761eb53e59f0090dfd0ccc67e539efa8b2cf69d249f5b7b15a
Status: Downloaded newer image for node:12.13.0-alpine
 ---> 5d187500daae
Step 2/4 : RUN apk add git vim
 ---> Running in 0714c033589a
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/community/x86_64/APKINDEX.tar.gz
(1/12) Installing ca-certificates (20190108-r0)
(2/12) Installing nghttp2-libs (1.35.1-r1)
(3/12) Installing libssh2 (1.9.0-r1)
(4/12) Installing libcurl (7.64.0-r3)
(5/12) Installing expat (2.2.8-r0)
(6/12) Installing pcre2 (10.32-r1)
(7/12) Installing git (2.20.1-r0)
(8/12) Installing lua5.3-libs (5.3.5-r2)
(9/12) Installing ncurses-terminfo-base (6.1_p20190105-r0)
(10/12) Installing ncurses-terminfo (6.1_p20190105-r0)
(11/12) Installing ncurses-libs (6.1_p20190105-r0)
(12/12) Installing vim (8.1.1365-r0)
Executing busybox-1.29.3-r10.trigger
Executing ca-certificates-20190108-r0.trigger
OK: 57 MiB in 28 packages
Removing intermediate container 0714c033589a
 ---> 643404110ea8
Step 3/4 : WORKDIR /app
 ---> Running in 62c3c373644e
Removing intermediate container 62c3c373644e
 ---> b9a8c96e4dc9
Step 4/4 : ENTRYPOINT ["./entrypoint.sh"]
 ---> Running in 843ae16ac4ae
Removing intermediate container 843ae16ac4ae
 ---> b2037f93063c
Successfully built b2037f93063c
Successfully tagged 4_app:latest
WARNING: Image for service app was built because it did not already exist. To rebuild this image you must use `docker-compose build` or `docker-compose up --build`.
Creating 4_app_1 ... done
Attaching to 4_app_1
app_1  | npm WARN app No description
app_1  | npm WARN app No repository field.
app_1  | npm WARN app No license field.
app_1  |
app_1  | npm ERR! code 128
app_1  | npm ERR! Command failed: git clone --mirror -q git://github.com/kevva/is-positive.git /root/.npm/_cacache/tmp/git-clone-d80b8730/.git
app_1  | npm ERR! fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-d80b8730/.git'
app_1  | npm ERR!
app_1  |
app_1  | npm ERR! A complete log of this run can be found in:
app_1  | npm ERR!     /root/.npm/_logs/2019-10-31T10_55_25_653Z-debug.log
app_1  | 0 info it worked if it ends with ok
app_1  | 1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'i' ]
app_1  | 2 info using [email protected]
app_1  | 3 info using [email protected]
app_1  | 4 verbose npm-session 050f47fbd836dd9a
app_1  | 5 silly install runPreinstallTopLevelLifecycles
app_1  | 6 silly preinstall app
app_1  | 7 info lifecycle @~preinstall: @
app_1  | 8 silly install loadCurrentTree
app_1  | 9 silly install readLocalPackageData
app_1  | 10 timing stage:loadCurrentTree Completed in 8ms
app_1  | 11 silly install loadIdealTree
app_1  | 12 silly install cloneCurrentTreeToIdealTree
app_1  | 13 timing stage:loadIdealTree:cloneCurrentTree Completed in 0ms
app_1  | 14 silly install loadShrinkwrap
app_1  | 15 timing stage:loadIdealTree:loadShrinkwrap Completed in 5ms
app_1  | 16 silly install loadAllDepsIntoIdealTree
app_1  | 17 timing stage:loadIdealTree:loadAllDepsIntoIdealTree Completed in 4ms
app_1  | 18 timing stage:loadIdealTree Completed in 11ms
app_1  | 19 silly currentTree app
app_1  | 20 silly idealTree app
app_1  | 20 silly idealTree `-- is-positive@github:kevva/is-positive#97edff6f525f192a3f83cea1944765f769ae2678
app_1  | 21 silly install generateActionsToTake
app_1  | 22 timing stage:generateActionsToTake Completed in 4ms
app_1  | 23 silly diffTrees action count 1
app_1  | 24 silly diffTrees add is-positive@github:kevva/is-positive#97edff6f525f192a3f83cea1944765f769ae2678
app_1  | 25 silly decomposeActions action count 8
app_1  | 26 silly decomposeActions fetch is-positive@github:kevva/is-positive#97edff6f525f192a3f83cea1944765f769ae2678
app_1  | 27 silly decomposeActions extract is-positive@github:kevva/is-positive#97edff6f525f192a3f83cea1944765f769ae2678
app_1  | 28 silly decomposeActions preinstall is-positive@github:kevva/is-positive#97edff6f525f192a3f83cea1944765f769ae2678
app_1  | 29 silly decomposeActions build is-positive@github:kevva/is-positive#97edff6f525f192a3f83cea1944765f769ae2678
app_1  | 30 silly decomposeActions install is-positive@github:kevva/is-positive#97edff6f525f192a3f83cea1944765f769ae2678
app_1  | 31 silly decomposeActions postinstall is-positive@github:kevva/is-positive#97edff6f525f192a3f83cea1944765f769ae2678
app_1  | 32 silly decomposeActions finalize is-positive@github:kevva/is-positive#97edff6f525f192a3f83cea1944765f769ae2678
app_1  | 33 silly decomposeActions refresh-package-json is-positive@github:kevva/is-positive#97edff6f525f192a3f83cea1944765f769ae2678
app_1  | 34 silly install executeActions
app_1  | 35 silly doSerial global-install 8
app_1  | 36 verbose correctMkdir /root/.npm/_locks correctMkdir not in flight; initializing
app_1  | 37 verbose lock using /root/.npm/_locks/staging-bd3355550c5a469e.lock for /app/node_modules/.staging
app_1  | 38 silly doParallel extract 1
app_1  | 39 silly extract is-positive@github:kevva/is-positive#97edff6f525f192a3f83cea1944765f769ae2678
app_1  | 40 silly tarball no local data for github:kevva/is-positive. Extracting by manifest.
app_1  | 41 timing audit submit Completed in 512ms
app_1  | 42 http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/audits/quick 513ms
app_1  | 43 timing audit body Completed in 2ms
app_1  | 44 timing action:extract Completed in 1499ms
app_1  | 45 verbose unlock done using /root/.npm/_locks/staging-bd3355550c5a469e.lock for /app/node_modules/.staging
app_1  | 46 timing stage:rollbackFailedOptional Completed in 1ms
app_1  | 47 timing stage:runTopLevelLifecycles Completed in 1595ms
app_1  | 48 silly saveTree app
app_1  | 48 silly saveTree `-- is-positive@github:kevva/is-positive#97edff6f525f192a3f83cea1944765f769ae2678
app_1  | 49 warn app No description
app_1  | 50 warn app No repository field.
app_1  | 51 warn app No license field.
app_1  | 52 verbose stack Error: Command failed: git clone --mirror -q git://github.com/kevva/is-positive.git /root/.npm/_cacache/tmp/git-clone-d80b8730/.git
app_1  | 52 verbose stack fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-d80b8730/.git'
app_1  | 52 verbose stack
app_1  | 52 verbose stack     at ChildProcess.exithandler (child_process.js:295:12)
app_1  | 52 verbose stack     at ChildProcess.emit (events.js:210:5)
app_1  | 52 verbose stack     at maybeClose (internal/child_process.js:1021:16)
app_1  | 52 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
app_1  | 53 verbose cwd /app
app_1  | 54 verbose Linux 5.3.6-arch1-1-ARCH
app_1  | 55 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "i"
app_1  | 56 verbose node v12.13.0
app_1  | 57 verbose npm  v6.12.0
app_1  | 58 error code 128
app_1  | 59 error Command failed: git clone --mirror -q git://github.com/kevva/is-positive.git /root/.npm/_cacache/tmp/git-clone-d80b8730/.git
app_1  | 59 error fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-d80b8730/.git'
app_1  | 60 verbose exit [ 1, true ]
4_app_1 exited with code 0
version: '3'
services:
app:
build: .
# entrypoint: sleep 10000000
# ports:
# - 9229:9229
volumes:
- ./:/app
FROM node:12.13.0-alpine
RUN apk add git vim
WORKDIR /app
ENTRYPOINT ["./entrypoint.sh"]
#!/bin/sh
set -eu
npm i is-positive || true
cat /root/.npm/_logs/*.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment