Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save x-yuri/33fdc97fb46d097a50be1f9b7f551db8 to your computer and use it in GitHub Desktop.
Save x-yuri/33fdc97fb46d097a50be1f9b7f551db8 to your computer and use it in GitHub Desktop.

npm ERR! fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-87fa5e82/.git'

Introduced in npm-6.11.0, pacote-9.5.5. pacote started to run commands under cwd's owner. But some files are to be created in ~/.npm/_cacache/tmp (e.g. cloning repositories when installing from github). When a process (npm) user doesn't match the cwd user, process user's cache is still used. So git clone is executed under cwd user to clone to the process user's tmp dir, which apparently fails. That can happen under docker when a non-root's directory is bind-mounted into a container. It's not owned by root in the container either, but the processes in the container are running under root (unless explicitly started as another user).

Fixed in npm-6.13.6, pacote-9.5.12. Affects node@^10.17.0 (npm-6.11.3), node >= 12.11.0 (npm-6.11.3), node < 13.7.0 (npm-6.13.6).

Step to reproduce:

Under non-root user:

1.sh:

#!/bin/sh
set -eux
npm --version
apk add git
npm i kevva/is-positive || cat /root/.npm/_logs/*.log
$ docker run --rm -itv $PWD:/app -w /app node:10.17.0-alpine3.10 ./1.sh
+ npm --version
6.11.3
...
+ npm i kevva/is-positive
...
npm ERR! Command failed: git clone --mirror -q git://github.com/kevva/is-positive.git /root/.npm/_cac
ache/tmp/git-clone-87fa5e82/.git
npm ERR! fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-87fa5e82/.
git'
...

Or under root in a non-root dir:

$ npm i kevva/is-positive

Issues:
[BUG] Failed to install npm package from git in docker since v6.11.0
[BUG] git dependency installed with npm ci triggers error with npm prune --production)
[BUG] "could not create leading directories" when installing globally from GitHub URL

Under non-root user:

1.sh:

#!/bin/sh
set -eux
npm --version
apk add git
npm i kevva/is-positive || cat /root/.npm/_logs/*.log
$ docker run --rm -itv $PWD:/app -w /app node:10.16.3-alpine ./1.sh
+ npm --version
6.9.0
...
+ npm i kevva/is-positive
npm WARN saveError ENOENT: no such file or directory, open '/app/package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open '/app/package.json'
npm WARN app No description
npm WARN app No repository field.
npm WARN app No README data
npm WARN app No license field.

+ is-positive@3.1.0
added 1 package from 1 contributor and audited 1 package in 1.686s
found 0 vulnerabilities
$ docker run --rm -itv $PWD:/app -w /app node:10.17.0-alpine3.10 ./1.sh
+ npm --version
6.11.3
...
+ npm i kevva/is-positive
npm WARN enoent ENOENT: no such file or directory, open '/app/package.json'
npm WARN app No description
npm WARN app No repository field.
npm WARN app No README data
npm WARN app No license field.

npm ERR! code 128
npm ERR! Command failed: git clone --mirror -q git://github.com/kevva/is-positive.git /root/.npm/_cac
ache/tmp/git-clone-87fa5e82/.git
npm ERR! fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-87fa5e82/.
git'
npm ERR!

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-02-23T18_57_24_797Z-debug.log
+ cat /root/.npm/_logs/2020-02-23T18_57_24_797Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node',
1 verbose cli   '/usr/local/bin/npm',
1 verbose cli   'i',
1 verbose cli   'kevva/is-positive' ]
2 info using npm@6.11.3
3 info using node@v10.17.0
4 verbose npm-session c9413e6dc7ddddc4
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 info lifecycle is-positive@3.1.0~prepack: is-positive@3.1.0
8 info lifecycle is-positive@3.1.0~postpack: is-positive@3.1.0
9 silly pacote git manifest for undefined@github:kevva/is-positive fetched in 913ms
10 timing stage:loadCurrentTree Completed in 930ms
11 silly install loadIdealTree
12 silly install cloneCurrentTreeToIdealTree
13 timing stage:loadIdealTree:cloneCurrentTree Completed in 1ms
14 silly install loadShrinkwrap
15 timing stage:loadIdealTree:loadShrinkwrap Completed in 0ms
16 silly install loadAllDepsIntoIdealTree
17 silly resolveWithNewModule is-positive@3.1.0 checking installable status
18 timing stage:loadIdealTree:loadAllDepsIntoIdealTree Completed in 4ms
19 timing stage:loadIdealTree Completed in 6ms
20 silly currentTree app
21 silly idealTree app
21 silly idealTree `-- is-positive@3.1.0
22 silly install generateActionsToTake
23 timing stage:generateActionsToTake Completed in 5ms
24 silly diffTrees action count 1
25 silly diffTrees add is-positive@3.1.0
26 silly decomposeActions action count 8
27 silly decomposeActions fetch is-positive@3.1.0
28 silly decomposeActions extract is-positive@3.1.0
29 silly decomposeActions preinstall is-positive@3.1.0
30 silly decomposeActions build is-positive@3.1.0
31 silly decomposeActions install is-positive@3.1.0
32 silly decomposeActions postinstall is-positive@3.1.0
33 silly decomposeActions finalize is-positive@3.1.0
34 silly decomposeActions refresh-package-json is-positive@3.1.0
35 silly install executeActions
36 silly doSerial global-install 8
37 verbose correctMkdir /root/.npm/_locks correctMkdir not in flight; initializing
38 verbose lock using /root/.npm/_locks/staging-bd3355550c5a469e.lock for /app/node_modules/.staging
39 silly doParallel extract 1
40 silly extract is-positive@3.1.0
41 silly tarball no local data for github:kevva/is-positive. Extracting by manifest.
42 timing audit submit Completed in 287ms
43 http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/audits/quick 287ms
44 timing audit body Completed in 0ms
45 timing action:extract Completed in 1017ms
46 verbose unlock done using /root/.npm/_locks/staging-bd3355550c5a469e.lock for /app/node_modules/.s
taging
47 timing stage:rollbackFailedOptional Completed in 0ms
48 timing stage:runTopLevelLifecycles Completed in 1985ms
49 silly saveTree app
49 silly saveTree `-- is-positive@3.1.0
50 warn enoent ENOENT: no such file or directory, open '/app/package.json'
51 verbose enoent This is related to npm not being able to find a file.
52 warn app No description
53 warn app No repository field.
54 warn app No README data
55 warn app No license field.
56 verbose stack Error: Command failed: git clone --mirror -q git://github.com/kevva/is-positive.git
/root/.npm/_cacache/tmp/git-clone-87fa5e82/.git
56 verbose stack fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-87
fa5e82/.git'
56 verbose stack
56 verbose stack     at ChildProcess.exithandler (child_process.js:294:12)
56 verbose stack     at ChildProcess.emit (events.js:198:13)
56 verbose stack     at maybeClose (internal/child_process.js:982:16)
56 verbose stack     at Socket.stream.socket.on (internal/child_process.js:389:11)
56 verbose stack     at Socket.emit (events.js:198:13)
56 verbose stack     at Pipe._handle.close (net.js:607:12)
57 verbose cwd /app
58 verbose Linux 3.16.0-4-amd64
59 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "i" "kevva/is-positive"
60 verbose node v10.17.0
61 verbose npm  v6.11.3
62 error code 128
63 error Command failed: git clone --mirror -q git://github.com/kevva/is-positive.git /root/.npm/_cac
ache/tmp/git-clone-87fa5e82/.git
63 error fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-87fa5e82/.
git'
64 verbose exit [ 1, true ]
$ docker run --rm -itv $PWD:/app -w /app node:10.19.0-alpine3.11 ./1.sh
+ npm --version
6.13.4
...
+ npm i kevva/is-positive
npm WARN enoent ENOENT: no such file or directory, open '/app/package.json'
npm WARN app No description
npm WARN app No repository field.
npm WARN app No README data
npm WARN app No license field.

npm ERR! code 128
npm ERR! Command failed: git clone --mirror -q git://github.com/kevva/is-positive.git /root/.npm/_cac
ache/tmp/git-clone-fe2e04cd/.git
npm ERR! fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-fe2e04cd/.
git'
npm ERR!

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-02-23T18_59_11_169Z-debug.log
+ cat /root/.npm/_logs/2020-02-23T18_59_11_169Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node',
1 verbose cli   '/usr/local/bin/npm',
1 verbose cli   'i',
1 verbose cli   'kevva/is-positive' ]
2 info using npm@6.13.4
3 info using node@v10.19.0
4 verbose npm-session 14307b64232b214d
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 info lifecycle is-positive@3.1.0~prepack: is-positive@3.1.0
8 info lifecycle is-positive@3.1.0~postpack: is-positive@3.1.0
9 silly pacote git manifest for undefined@github:kevva/is-positive fetched in 914ms
10 timing stage:loadCurrentTree Completed in 932ms
11 silly install loadIdealTree
12 silly install cloneCurrentTreeToIdealTree
13 timing stage:loadIdealTree:cloneCurrentTree Completed in 0ms
14 silly install loadShrinkwrap
15 timing stage:loadIdealTree:loadShrinkwrap Completed in 1ms
16 silly install loadAllDepsIntoIdealTree
17 silly resolveWithNewModule is-positive@3.1.0 checking installable status
18 timing stage:loadIdealTree:loadAllDepsIntoIdealTree Completed in 4ms
19 timing stage:loadIdealTree Completed in 6ms
20 silly currentTree app
21 silly idealTree app
21 silly idealTree `-- is-positive@3.1.0
22 silly install generateActionsToTake
23 timing stage:generateActionsToTake Completed in 5ms
24 silly diffTrees action count 1
25 silly diffTrees add is-positive@3.1.0
26 silly decomposeActions action count 8
27 silly decomposeActions fetch is-positive@3.1.0
28 silly decomposeActions extract is-positive@3.1.0
29 silly decomposeActions preinstall is-positive@3.1.0
30 silly decomposeActions build is-positive@3.1.0
31 silly decomposeActions install is-positive@3.1.0
32 silly decomposeActions postinstall is-positive@3.1.0
33 silly decomposeActions finalize is-positive@3.1.0
34 silly decomposeActions refresh-package-json is-positive@3.1.0
35 silly install executeActions
36 silly doSerial global-install 8
37 verbose correctMkdir /root/.npm/_locks correctMkdir not in flight; initializing
38 verbose lock using /root/.npm/_locks/staging-bd3355550c5a469e.lock for /app/node_modules/.staging
39 silly doParallel extract 1
40 silly extract is-positive@3.1.0
41 silly tarball no local data for github:kevva/is-positive. Extracting by manifest.
42 timing audit submit Completed in 897ms
43 http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/audits/quick 898ms
44 timing audit body Completed in 1ms
45 timing action:extract Completed in 1016ms
46 verbose unlock done using /root/.npm/_locks/staging-bd3355550c5a469e.lock for /app/node_modules/.s
taging
47 timing stage:rollbackFailedOptional Completed in 0ms
48 timing stage:runTopLevelLifecycles Completed in 1987ms
49 silly saveTree app
49 silly saveTree `-- is-positive@3.1.0
50 warn enoent ENOENT: no such file or directory, open '/app/package.json'
51 verbose enoent This is related to npm not being able to find a file.
52 warn app No description
53 warn app No repository field.
54 warn app No README data
55 warn app No license field.
56 verbose stack Error: Command failed: git clone --mirror -q git://github.com/kevva/is-positive.git
/root/.npm/_cacache/tmp/git-clone-fe2e04cd/.git
56 verbose stack fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-fe
2e04cd/.git'
56 verbose stack
56 verbose stack     at ChildProcess.exithandler (child_process.js:294:12)
56 verbose stack     at ChildProcess.emit (events.js:198:13)
56 verbose stack     at maybeClose (internal/child_process.js:982:16)
56 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
57 verbose cwd /app
58 verbose Linux 3.16.0-4-amd64
59 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "i" "kevva/is-positive"
60 verbose node v10.19.0
61 verbose npm  v6.13.4
62 error code 128
63 error Command failed: git clone --mirror -q git://github.com/kevva/is-positive.git /root/.npm/_cac
ache/tmp/git-clone-fe2e04cd/.git
63 error fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-fe2e04cd/.
git'
64 verbose exit [ 1, true ]
$ docker run --rm -itv $PWD:/app -w /app node:12.10.0-alpine ./1.sh
+ npm --version
6.10.3
...
+ npm i kevva/is-positive
npm WARN saveError ENOENT: no such file or directory, open '/app/package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open '/app/package.json'
npm WARN app No description
npm WARN app No repository field.
npm WARN app No README data
npm WARN app No license field.

+ is-positive@3.1.0
added 1 package from 1 contributor and audited 1 package in 1.755s
found 0 vulnerabilities
$ docker run --rm -itv $PWD:/app -w /app node:12.11.0-alpine ./1.sh
+ npm --version
6.11.3
...
+ npm i kevva/is-positive
npm WARN enoent ENOENT: no such file or directory, open '/app/package.json'
npm WARN app No description
npm WARN app No repository field.
npm WARN app No README data
npm WARN app No license field.

npm ERR! code 128
npm ERR! Command failed: git clone --mirror -q git://github.com/kevva/is-positive.git /root/.npm/_cac
ache/tmp/git-clone-acf39c6b/.git
npm ERR! fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-acf39c6b/.
git'
npm ERR!

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-02-23T18_39_35_146Z-debug.log
+ cat /root/.npm/_logs/2020-02-23T18_39_35_146Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli   '/usr/local/bin/node',
1 verbose cli   '/usr/local/bin/npm',
1 verbose cli   'i',
1 verbose cli   'kevva/is-positive'
1 verbose cli ]
2 info using npm@6.11.3
3 info using node@v12.11.0
4 verbose npm-session 381f02ded7965c12
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 info lifecycle is-positive@3.1.0~prepack: is-positive@3.1.0
8 info lifecycle is-positive@3.1.0~postpack: is-positive@3.1.0
9 silly pacote git manifest for undefined@github:kevva/is-positive fetched in 915ms
10 timing stage:loadCurrentTree Completed in 927ms
11 silly install loadIdealTree
12 silly install cloneCurrentTreeToIdealTree
13 timing stage:loadIdealTree:cloneCurrentTree Completed in 0ms
14 silly install loadShrinkwrap
15 timing stage:loadIdealTree:loadShrinkwrap Completed in 1ms
16 silly install loadAllDepsIntoIdealTree
17 silly resolveWithNewModule is-positive@3.1.0 checking installable status
18 timing stage:loadIdealTree:loadAllDepsIntoIdealTree Completed in 4ms
19 timing stage:loadIdealTree Completed in 6ms
20 silly currentTree app
21 silly idealTree app
21 silly idealTree `-- is-positive@3.1.0
22 silly install generateActionsToTake
23 timing stage:generateActionsToTake Completed in 4ms
24 silly diffTrees action count 1
25 silly diffTrees add is-positive@3.1.0
26 silly decomposeActions action count 8
27 silly decomposeActions fetch is-positive@3.1.0
28 silly decomposeActions extract is-positive@3.1.0
29 silly decomposeActions preinstall is-positive@3.1.0
30 silly decomposeActions build is-positive@3.1.0
31 silly decomposeActions install is-positive@3.1.0
32 silly decomposeActions postinstall is-positive@3.1.0
33 silly decomposeActions finalize is-positive@3.1.0
34 silly decomposeActions refresh-package-json is-positive@3.1.0
35 silly install executeActions
36 silly doSerial global-install 8
37 verbose correctMkdir /root/.npm/_locks correctMkdir not in flight; initializing
38 verbose lock using /root/.npm/_locks/staging-bd3355550c5a469e.lock for /app/node_modules/.staging
39 silly doParallel extract 1
40 silly extract is-positive@3.1.0
41 silly tarball no local data for github:kevva/is-positive. Extracting by manifest.
42 timing audit submit Completed in 821ms
43 http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/audits/quick 822ms
44 timing audit body Completed in 1ms
45 timing action:extract Completed in 1016ms
46 verbose unlock done using /root/.npm/_locks/staging-bd3355550c5a469e.lock for /app/node_modules/.s
taging
47 timing stage:rollbackFailedOptional Completed in 0ms
48 timing stage:runTopLevelLifecycles Completed in 1979ms
49 silly saveTree app
49 silly saveTree `-- is-positive@3.1.0
50 warn enoent ENOENT: no such file or directory, open '/app/package.json'
51 verbose enoent This is related to npm not being able to find a file.
52 warn app No description
53 warn app No repository field.
54 warn app No README data
55 warn app No license field.
56 verbose stack Error: Command failed: git clone --mirror -q git://github.com/kevva/is-positive.git
/root/.npm/_cacache/tmp/git-clone-acf39c6b/.git
56 verbose stack fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-ac
f39c6b/.git'
56 verbose stack
56 verbose stack     at ChildProcess.exithandler (child_process.js:295:12)
56 verbose stack     at ChildProcess.emit (events.js:210:5)
56 verbose stack     at maybeClose (internal/child_process.js:1021:16)
56 verbose stack     at Socket.<anonymous> (internal/child_process.js:430:11)
56 verbose stack     at Socket.emit (events.js:210:5)
56 verbose stack     at Pipe.<anonymous> (net.js:658:12)
57 verbose cwd /app
58 verbose Linux 3.16.0-4-amd64
59 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "i" "kevva/is-positive"
60 verbose node v12.11.0
61 verbose npm  v6.11.3
62 error code 128
63 error Command failed: git clone --mirror -q git://github.com/kevva/is-positive.git /root/.npm/_cac
ache/tmp/git-clone-acf39c6b/.git
63 error fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-acf39c6b/.
git'
64 verbose exit [ 1, true ]
$ docker run --rm -itv $PWD:/app -w /app node:12.16.1-alpine3.11 ./1.sh
+ npm --version
6.13.4
...
+ npm i kevva/is-positive
npm WARN enoent ENOENT: no such file or directory, open '/app/package.json'
npm WARN app No description
npm WARN app No repository field.
npm WARN app No README data
npm WARN app No license field.

npm ERR! code 128
npm ERR! Command failed: git clone --mirror -q git://github.com/kevva/is-positive.git /root/.npm/_cac
ache/tmp/git-clone-1ad2aedc/.git
npm ERR! fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-1ad2aedc/.
git'
npm ERR!

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-02-23T18_47_40_269Z-debug.log
+ cat /root/.npm/_logs/2020-02-23T18_47_40_269Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli   '/usr/local/bin/node',
1 verbose cli   '/usr/local/bin/npm',
1 verbose cli   'i',
1 verbose cli   'kevva/is-positive'
1 verbose cli ]
2 info using npm@6.13.4
3 info using node@v12.16.1
4 verbose npm-session 33934969baa47200
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 info lifecycle is-positive@3.1.0~prepack: is-positive@3.1.0
8 info lifecycle is-positive@3.1.0~postpack: is-positive@3.1.0
9 silly pacote git manifest for undefined@github:kevva/is-positive fetched in 1074ms
10 timing stage:loadCurrentTree Completed in 1090ms
11 silly install loadIdealTree
12 silly install cloneCurrentTreeToIdealTree
13 timing stage:loadIdealTree:cloneCurrentTree Completed in 1ms
14 silly install loadShrinkwrap
15 timing stage:loadIdealTree:loadShrinkwrap Completed in 0ms
16 silly install loadAllDepsIntoIdealTree
17 silly resolveWithNewModule is-positive@3.1.0 checking installable status
18 timing stage:loadIdealTree:loadAllDepsIntoIdealTree Completed in 4ms
19 timing stage:loadIdealTree Completed in 6ms
20 silly currentTree app
21 silly idealTree app
21 silly idealTree `-- is-positive@3.1.0
22 silly install generateActionsToTake
23 timing stage:generateActionsToTake Completed in 4ms
24 silly diffTrees action count 1
25 silly diffTrees add is-positive@3.1.0
26 silly decomposeActions action count 8
27 silly decomposeActions fetch is-positive@3.1.0
28 silly decomposeActions extract is-positive@3.1.0
29 silly decomposeActions preinstall is-positive@3.1.0
30 silly decomposeActions build is-positive@3.1.0
31 silly decomposeActions install is-positive@3.1.0
32 silly decomposeActions postinstall is-positive@3.1.0
33 silly decomposeActions finalize is-positive@3.1.0
34 silly decomposeActions refresh-package-json is-positive@3.1.0
35 silly install executeActions
36 silly doSerial global-install 8
37 verbose correctMkdir /root/.npm/_locks correctMkdir not in flight; initializing
38 verbose lock using /root/.npm/_locks/staging-bd3355550c5a469e.lock for /app/node_modules/.staging
39 silly doParallel extract 1
40 silly extract is-positive@3.1.0
41 silly tarball no local data for github:kevva/is-positive. Extracting by manifest.
42 timing audit submit Completed in 324ms
43 http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/audits/quick 323ms
44 timing audit body Completed in 0ms
45 timing action:extract Completed in 1020ms
46 verbose unlock done using /root/.npm/_locks/staging-bd3355550c5a469e.lock for /app/node_modules/.s
taging
47 timing stage:rollbackFailedOptional Completed in 1ms
48 timing stage:runTopLevelLifecycles Completed in 2154ms
49 silly saveTree app
49 silly saveTree `-- is-positive@3.1.0
50 warn enoent ENOENT: no such file or directory, open '/app/package.json'
51 verbose enoent This is related to npm not being able to find a file.
52 warn app No description
53 warn app No repository field.
54 warn app No README data
55 warn app No license field.
56 verbose stack Error: Command failed: git clone --mirror -q git://github.com/kevva/is-positive.git
/root/.npm/_cacache/tmp/git-clone-1ad2aedc/.git
56 verbose stack fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-1a
d2aedc/.git'
56 verbose stack
56 verbose stack     at ChildProcess.exithandler (child_process.js:303:12)
56 verbose stack     at ChildProcess.emit (events.js:311:20)
56 verbose stack     at maybeClose (internal/child_process.js:1021:16)
56 verbose stack     at Socket.<anonymous> (internal/child_process.js:443:11)
56 verbose stack     at Socket.emit (events.js:311:20)
56 verbose stack     at Pipe.<anonymous> (net.js:668:12)
57 verbose cwd /app
58 verbose Linux 3.16.0-4-amd64
59 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "i" "kevva/is-positive"
60 verbose node v12.16.1
61 verbose npm  v6.13.4
62 error code 128
63 error Command failed: git clone --mirror -q git://github.com/kevva/is-positive.git /root/.npm/_cac
ache/tmp/git-clone-1ad2aedc/.git
63 error fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-1ad2aedc/.
git'
64 verbose exit [ 1, true ]
$ docker run --rm -itv $PWD:/app -w /app node:13.0.0-alpine3.11 ./1.sh
+ npm --version
6.12.0
...
+ npm i kevva/is-positive
npm WARN npm npm does not support Node.js v13.0.0
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm Supported releases of Node.js are the latest release of 6, 8, 9, 10, 11, 12.
npm WARN npm You can find the latest version at https://nodejs.org/
npm WARN enoent ENOENT: no such file or directory, open '/app/package.json'
npm WARN app No description
npm WARN app No repository field.
npm WARN app No README data
npm WARN app No license field.

npm ERR! code 128
npm ERR! Command failed: git clone --mirror -q git://github.com/kevva/is-positive.git /root/.npm/_cac
ache/tmp/git-clone-c0297248/.git
npm ERR! fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-c0297248/.
git'
npm ERR!

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-02-23T18_50_05_506Z-debug.log
+ cat /root/.npm/_logs/2020-02-23T18_50_05_506Z-debug.log
0 info it worked if it ends with ok
1 warn npm npm does not support Node.js v13.0.0
2 warn npm You should probably upgrade to a newer version of node as we
3 warn npm can't make any promises that npm will work with this version.
4 warn npm Supported releases of Node.js are the latest release of 6, 8, 9, 10, 11, 12.
5 warn npm You can find the latest version at https://nodejs.org/
6 verbose cli [
6 verbose cli   '/usr/local/bin/node',
6 verbose cli   '/usr/local/bin/npm',
6 verbose cli   'i',
6 verbose cli   'kevva/is-positive'
6 verbose cli ]
7 info using npm@6.12.0
8 info using node@v13.0.0
9 verbose npm-session b4bc18e4b50367e2
10 silly install loadCurrentTree
11 silly install readLocalPackageData
12 info lifecycle is-positive@3.1.0~prepack: is-positive@3.1.0
13 info lifecycle is-positive@3.1.0~postpack: is-positive@3.1.0
14 silly pacote git manifest for undefined@github:kevva/is-positive fetched in 3453ms
15 timing stage:loadCurrentTree Completed in 3467ms
16 silly install loadIdealTree
17 silly install cloneCurrentTreeToIdealTree
18 timing stage:loadIdealTree:cloneCurrentTree Completed in 0ms
19 silly install loadShrinkwrap
20 timing stage:loadIdealTree:loadShrinkwrap Completed in 0ms
21 silly install loadAllDepsIntoIdealTree
22 silly resolveWithNewModule is-positive@3.1.0 checking installable status
23 timing stage:loadIdealTree:loadAllDepsIntoIdealTree Completed in 5ms
24 timing stage:loadIdealTree Completed in 6ms
25 silly currentTree app
26 silly idealTree app
26 silly idealTree `-- is-positive@3.1.0
27 silly install generateActionsToTake
28 timing stage:generateActionsToTake Completed in 4ms
29 silly diffTrees action count 1
30 silly diffTrees add is-positive@3.1.0
31 silly decomposeActions action count 8
32 silly decomposeActions fetch is-positive@3.1.0
33 silly decomposeActions extract is-positive@3.1.0
34 silly decomposeActions preinstall is-positive@3.1.0
35 silly decomposeActions build is-positive@3.1.0
36 silly decomposeActions install is-positive@3.1.0
37 silly decomposeActions postinstall is-positive@3.1.0
38 silly decomposeActions finalize is-positive@3.1.0
39 silly decomposeActions refresh-package-json is-positive@3.1.0
40 silly install executeActions
41 silly doSerial global-install 8
42 verbose correctMkdir /root/.npm/_locks correctMkdir not in flight; initializing
43 verbose lock using /root/.npm/_locks/staging-bd3355550c5a469e.lock for /app/node_modules/.staging
44 silly doParallel extract 1
45 silly extract is-positive@3.1.0
46 silly tarball no local data for github:kevva/is-positive. Extracting by manifest.
47 timing audit submit Completed in 1131ms
48 http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/audits/quick 1131ms
49 timing audit body Completed in 1ms
50 timing action:extract Completed in 1198ms
51 verbose unlock done using /root/.npm/_locks/staging-bd3355550c5a469e.lock for /app/node_modules/.s
taging
52 timing stage:rollbackFailedOptional Completed in 1ms
53 timing stage:runTopLevelLifecycles Completed in 4707ms
54 silly saveTree app
54 silly saveTree `-- is-positive@3.1.0
55 warn enoent ENOENT: no such file or directory, open '/app/package.json'
56 verbose enoent This is related to npm not being able to find a file.
57 warn app No description
58 warn app No repository field.
59 warn app No README data
60 warn app No license field.
61 verbose stack Error: Command failed: git clone --mirror -q git://github.com/kevva/is-positive.git
/root/.npm/_cacache/tmp/git-clone-c0297248/.git
61 verbose stack fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-c0
297248/.git'
61 verbose stack
61 verbose stack     at ChildProcess.exithandler (child_process.js:295:12)
61 verbose stack     at ChildProcess.emit (events.js:210:5)
61 verbose stack     at maybeClose (internal/child_process.js:1028:16)
61 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
62 verbose cwd /app
63 verbose Linux 3.16.0-4-amd64
64 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "i" "kevva/is-positive"
65 verbose node v13.0.0
66 verbose npm  v6.12.0
67 error code 128
68 error Command failed: git clone --mirror -q git://github.com/kevva/is-positive.git /root/.npm/_cac
ache/tmp/git-clone-c0297248/.git
68 error fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-c0297248/.
git'
69 verbose exit [ 1, true ]
$ docker run --rm -itv $PWD:/app -w /app node:13.6.0-alpine3.11 ./1.sh
+ npm --version
6.13.4
...
+ npm i kevva/is-positive
npm WARN enoent ENOENT: no such file or directory, open '/app/package.json'
npm WARN app No description
npm WARN app No repository field.
npm WARN app No README data
npm WARN app No license field.

npm ERR! code 128
npm ERR! Command failed: git clone --mirror -q git://github.com/kevva/is-positive.git /root/.npm/_cac
ache/tmp/git-clone-7181ca74/.git
npm ERR! fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-7181ca74/.
git'
npm ERR!

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-02-23T18_43_20_730Z-debug.log
+ cat /root/.npm/_logs/2020-02-23T18_43_20_730Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli   '/usr/local/bin/node',
1 verbose cli   '/usr/local/bin/npm',
1 verbose cli   'i',
1 verbose cli   'kevva/is-positive'
1 verbose cli ]
2 info using npm@6.13.4
3 info using node@v13.6.0
4 verbose npm-session e2d34e7b6bac7336
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 info lifecycle is-positive@3.1.0~prepack: is-positive@3.1.0
8 info lifecycle is-positive@3.1.0~postpack: is-positive@3.1.0
9 silly pacote git manifest for undefined@github:kevva/is-positive fetched in 916ms
10 timing stage:loadCurrentTree Completed in 929ms
11 silly install loadIdealTree
12 silly install cloneCurrentTreeToIdealTree
13 timing stage:loadIdealTree:cloneCurrentTree Completed in 0ms
14 silly install loadShrinkwrap
15 timing stage:loadIdealTree:loadShrinkwrap Completed in 1ms
16 silly install loadAllDepsIntoIdealTree
17 silly resolveWithNewModule is-positive@3.1.0 checking installable status
18 timing stage:loadIdealTree:loadAllDepsIntoIdealTree Completed in 4ms
19 timing stage:loadIdealTree Completed in 6ms
20 silly currentTree app
21 silly idealTree app
21 silly idealTree `-- is-positive@3.1.0
22 silly install generateActionsToTake
23 timing stage:generateActionsToTake Completed in 4ms
24 silly diffTrees action count 1
25 silly diffTrees add is-positive@3.1.0
26 silly decomposeActions action count 8
27 silly decomposeActions fetch is-positive@3.1.0
28 silly decomposeActions extract is-positive@3.1.0
29 silly decomposeActions preinstall is-positive@3.1.0
30 silly decomposeActions build is-positive@3.1.0
31 silly decomposeActions install is-positive@3.1.0
32 silly decomposeActions postinstall is-positive@3.1.0
33 silly decomposeActions finalize is-positive@3.1.0
34 silly decomposeActions refresh-package-json is-positive@3.1.0
35 silly install executeActions
36 silly doSerial global-install 8
37 verbose correctMkdir /root/.npm/_locks correctMkdir not in flight; initializing
38 verbose lock using /root/.npm/_locks/staging-bd3355550c5a469e.lock for /app/node_modules/.staging
39 silly doParallel extract 1
40 silly extract is-positive@3.1.0
41 silly tarball no local data for github:kevva/is-positive. Extracting by manifest.
42 timing audit submit Completed in 834ms
43 http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/audits/quick 835ms
44 timing audit body Completed in 1ms
45 timing action:extract Completed in 1017ms
46 verbose unlock done using /root/.npm/_locks/staging-bd3355550c5a469e.lock for /app/node_modules/.s
taging
47 timing stage:rollbackFailedOptional Completed in 0ms
48 timing stage:runTopLevelLifecycles Completed in 1986ms
49 silly saveTree app
49 silly saveTree `-- is-positive@3.1.0
50 warn enoent ENOENT: no such file or directory, open '/app/package.json'
51 verbose enoent This is related to npm not being able to find a file.
52 warn app No description
53 warn app No repository field.
54 warn app No README data
55 warn app No license field.
56 verbose stack Error: Command failed: git clone --mirror -q git://github.com/kevva/is-positive.git
/root/.npm/_cacache/tmp/git-clone-7181ca74/.git
56 verbose stack fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-71
81ca74/.git'
56 verbose stack
56 verbose stack     at ChildProcess.exithandler (child_process.js:303:12)
56 verbose stack     at ChildProcess.emit (events.js:321:20)
56 verbose stack     at maybeClose (internal/child_process.js:1028:16)
56 verbose stack     at Socket.<anonymous> (internal/child_process.js:443:11)
56 verbose stack     at Socket.emit (events.js:321:20)
56 verbose stack     at Pipe.<anonymous> (net.js:668:12)
57 verbose cwd /app
58 verbose Linux 3.16.0-4-amd64
59 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "i" "kevva/is-positive"
60 verbose node v13.6.0
61 verbose npm  v6.13.4
62 error code 128
63 error Command failed: git clone --mirror -q git://github.com/kevva/is-positive.git /root/.npm/_cac
ache/tmp/git-clone-7181ca74/.git
63 error fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-7181ca74/.
git'
64 verbose exit [ 1, true ]
$ docker run --rm -itv $PWD:/app -w /app node:13.7.0-alpine3.11 ./1.sh
+ npm --version
6.13.6
...
+ npm i kevva/is-positive
npm WARN enoent ENOENT: no such file or directory, open '/app/package.json'
npm WARN app No description
npm WARN app No repository field.
npm WARN app No README data
npm WARN app No license field.

npm ERR! code 128
npm ERR! Command failed: git clone --mirror -q git://github.com/kevva/is-positive.git /root/.npm/_cac
ache/tmp/git-clone-7181ca74/.git
npm ERR! fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-7181ca74/.
git'
npm ERR!

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-02-23T18_43_20_730Z-debug.log
+ cat /root/.npm/_logs/2020-02-23T18_43_20_730Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli   '/usr/local/bin/node',
1 verbose cli   '/usr/local/bin/npm',
1 verbose cli   'i',
1 verbose cli   'kevva/is-positive'
1 verbose cli ]
2 info using npm@6.13.4
3 info using node@v13.6.0
4 verbose npm-session e2d34e7b6bac7336
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 info lifecycle is-positive@3.1.0~prepack: is-positive@3.1.0
8 info lifecycle is-positive@3.1.0~postpack: is-positive@3.1.0
9 silly pacote git manifest for undefined@github:kevva/is-positive fetched in 916ms
10 timing stage:loadCurrentTree Completed in 929ms
11 silly install loadIdealTree
12 silly install cloneCurrentTreeToIdealTree
13 timing stage:loadIdealTree:cloneCurrentTree Completed in 0ms
14 silly install loadShrinkwrap
15 timing stage:loadIdealTree:loadShrinkwrap Completed in 1ms
16 silly install loadAllDepsIntoIdealTree
17 silly resolveWithNewModule is-positive@3.1.0 checking installable status
18 timing stage:loadIdealTree:loadAllDepsIntoIdealTree Completed in 4ms
19 timing stage:loadIdealTree Completed in 6ms
20 silly currentTree app
21 silly idealTree app
21 silly idealTree `-- is-positive@3.1.0
22 silly install generateActionsToTake
23 timing stage:generateActionsToTake Completed in 4ms
24 silly diffTrees action count 1
25 silly diffTrees add is-positive@3.1.0
26 silly decomposeActions action count 8
27 silly decomposeActions fetch is-positive@3.1.0
28 silly decomposeActions extract is-positive@3.1.0
29 silly decomposeActions preinstall is-positive@3.1.0
30 silly decomposeActions build is-positive@3.1.0
31 silly decomposeActions install is-positive@3.1.0
32 silly decomposeActions postinstall is-positive@3.1.0
33 silly decomposeActions finalize is-positive@3.1.0
34 silly decomposeActions refresh-package-json is-positive@3.1.0
35 silly install executeActions
36 silly doSerial global-install 8
37 verbose correctMkdir /root/.npm/_locks correctMkdir not in flight; initializing
38 verbose lock using /root/.npm/_locks/staging-bd3355550c5a469e.lock for /app/node_modules/.staging
39 silly doParallel extract 1
40 silly extract is-positive@3.1.0
41 silly tarball no local data for github:kevva/is-positive. Extracting by manifest.
42 timing audit submit Completed in 834ms
43 http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/audits/quick 835ms
44 timing audit body Completed in 1ms
45 timing action:extract Completed in 1017ms
46 verbose unlock done using /root/.npm/_locks/staging-bd3355550c5a469e.lock for /app/node_modules/.s
taging
47 timing stage:rollbackFailedOptional Completed in 0ms
48 timing stage:runTopLevelLifecycles Completed in 1986ms
49 silly saveTree app
49 silly saveTree `-- is-positive@3.1.0
50 warn enoent ENOENT: no such file or directory, open '/app/package.json'
51 verbose enoent This is related to npm not being able to find a file.
52 warn app No description
53 warn app No repository field.
54 warn app No README data
55 warn app No license field.
56 verbose stack Error: Command failed: git clone --mirror -q git://github.com/kevva/is-positive.git
/root/.npm/_cacache/tmp/git-clone-7181ca74/.git
56 verbose stack fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-71
81ca74/.git'
56 verbose stack
56 verbose stack     at ChildProcess.exithandler (child_process.js:303:12)
56 verbose stack     at ChildProcess.emit (events.js:321:20)
56 verbose stack     at maybeClose (internal/child_process.js:1028:16)
56 verbose stack     at Socket.<anonymous> (internal/child_process.js:443:11)
56 verbose stack     at Socket.emit (events.js:321:20)
56 verbose stack     at Pipe.<anonymous> (net.js:668:12)
57 verbose cwd /app
58 verbose Linux 3.16.0-4-amd64
59 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "i" "kevva/is-positive"
60 verbose node v13.6.0
61 verbose npm  v6.13.4
62 error code 128
63 error Command failed: git clone --mirror -q git://github.com/kevva/is-positive.git /root/.npm/_cac
ache/tmp/git-clone-7181ca74/.git
63 error fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-7181ca74/.
git'
64 verbose exit [ 1, true ]
+ ls -ald /app
drwxr-xr-x    3 1005     1005          4096 Feb 23 18:43 /app
+ npm --version
6.13.4
Connection to videochat.cool closed.
[yuri@yuri ~/_/npm-unsafe-perms] ssh-tom staging rm -rf '/home/u1/_/1/{node_modules,package*}' && ssh
-tom u1@staging -t sh -euxc '"cd _/1 && docker run --rm -itv \$PWD:/app -w /app node:13.7.0-alpine3.1
1 ./1.sh"'; n
> ssh root@videochat.cool rm -rf /home/u1/_/1/{node_modules,package*}
> ssh u1@videochat.cool -t sh -euxc "cd _/1 && docker run --rm -itv \$PWD:/app -w /app node:13.7.0-al
pine3.11 ./1.sh"
+ cd _/1
+ docker run --rm -itv /home/u1/_/1:/app -w /app node:13.7.0-alpine3.11 ./1.sh
Unable to find image 'node:13.7.0-alpine3.11' locally
13.7.0-alpine3.11: Pulling from library/node
c9b1b535fdd9: Already exists
07b35de5c8a5: Pull complete
a0b0418c013a: Pull complete
f4ac4306c751: Pull complete
Digest: sha256:b82067eea7667f53747a282f0c1aa66037570bceea4a9c03b4ef963c11d59aea
Status: Downloaded newer image for node:13.7.0-alpine3.11
+ apk add git
fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/community/x86_64/APKINDEX.tar.gz
(1/6) Installing ca-certificates (20191127-r1)
(2/6) Installing nghttp2-libs (1.40.0-r0)
(3/6) Installing libcurl (7.67.0-r0)
(4/6) Installing expat (2.2.9-r1)
(5/6) Installing pcre2 (10.34-r1)
(6/6) Installing git (2.24.1-r0)
Executing busybox-1.31.1-r9.trigger
Executing ca-certificates-20191127-r1.trigger
OK: 23 MiB in 22 packages
+ npm i kevva/is-positive
npm WARN saveError ENOENT: no such file or directory, open '/app/package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open '/app/package.json'
npm WARN app No description
npm WARN app No repository field.
npm WARN app No README data
npm WARN app No license field.

+ is-positive@3.1.0
added 1 package from 1 contributor and audited 1 package in 2.742s
found 0 vulnerabilities

1.sh:

#!/bin/sh
set -eux
apk add git
(cd /
git clone https://github.com/npm/cli
cd cli
git checkout "$1"
npm link)
npm i kevva/is-positive || cat /root/.npm/_logs/*.log
$ rm -rf node_modules 'package*' && docker run --rm -itv $PWD:/app -w /app node:10.19.0-alpine3.11 ./1.sh 238f8c32a
...
+ npm i kevva/is-positive
npm WARN saveError ENOENT: no such file or directory, open '/app/package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open '/app/package.json'
npm WARN app No description
npm WARN app No repository field.
npm WARN app No README data
npm WARN app No license field.

+ is-positive@3.1.0
added 1 package from 1 contributor and audited 1 package in 1.63s
found 0 vulnerabilities
$ rm -rf node_modules 'package*' && docker run --rm -itv $PWD:/app -w /app node:10.19.0-alpine3.11 ./2.sh e7e98952b
...
+ npm i kevva/is-positive
npm WARN enoent ENOENT: no such file or directory, open '/app/package.json'
npm WARN app No description
npm WARN app No repository field.
npm WARN app No README data
npm WARN app No license field.

npm ERR! code 128
npm ERR! Command failed: git clone --mirror -q git://github.com/kevva/is-positive.git /root/.npm/_cac
ache/tmp/git-clone-4a209f79/.git
npm ERR! fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-4a209f79/.
git'
npm ERR!

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-02-24T03_11_11_494Z-debug.log
+ cat /root/.npm/_logs/2020-02-24T03_11_11_494Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node',
1 verbose cli   '/usr/local/bin/npm',
1 verbose cli   'i',
1 verbose cli   'kevva/is-positive' ]
2 info using npm@6.10.3
3 info using node@v10.19.0
4 verbose npm-session 28f6f808ff1fcd64
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 info lifecycle is-positive@3.1.0~prepack: is-positive@3.1.0
8 info lifecycle is-positive@3.1.0~postpack: is-positive@3.1.0
9 silly pacote git manifest for undefined@github:kevva/is-positive fetched in 916ms
10 timing stage:loadCurrentTree Completed in 928ms
11 silly install loadIdealTree
12 silly install cloneCurrentTreeToIdealTree
13 timing stage:loadIdealTree:cloneCurrentTree Completed in 1ms
14 silly install loadShrinkwrap
15 timing stage:loadIdealTree:loadShrinkwrap Completed in 0ms
16 silly install loadAllDepsIntoIdealTree
17 silly resolveWithNewModule is-positive@3.1.0 checking installable status
18 timing stage:loadIdealTree:loadAllDepsIntoIdealTree Completed in 5ms
19 timing stage:loadIdealTree Completed in 6ms
20 silly currentTree app
21 silly idealTree app
21 silly idealTree `-- is-positive@3.1.0
22 silly install generateActionsToTake
23 timing stage:generateActionsToTake Completed in 4ms
24 silly diffTrees action count 1
25 silly diffTrees add is-positive@3.1.0
26 silly decomposeActions action count 8
27 silly decomposeActions fetch is-positive@3.1.0
28 silly decomposeActions extract is-positive@3.1.0
29 silly decomposeActions preinstall is-positive@3.1.0
30 silly decomposeActions build is-positive@3.1.0
31 silly decomposeActions install is-positive@3.1.0
32 silly decomposeActions postinstall is-positive@3.1.0
33 silly decomposeActions finalize is-positive@3.1.0
34 silly decomposeActions refresh-package-json is-positive@3.1.0
35 silly install executeActions
36 silly doSerial global-install 8
37 verbose correctMkdir /root/.npm/_locks correctMkdir not in flight; initializing
38 verbose lock using /root/.npm/_locks/staging-bd3355550c5a469e.lock for /app/node_modules/.staging
39 silly doParallel extract 1
40 silly extract is-positive@3.1.0
41 silly tarball no local data for github:kevva/is-positive. Extracting by manifest.
42 timing audit submit Completed in 792ms
43 http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/audits/quick 793ms
44 timing audit body Completed in 1ms
45 timing action:extract Completed in 1017ms
46 verbose unlock done using /root/.npm/_locks/staging-bd3355550c5a469e.lock for /app/node_modules/.s
taging
47 timing stage:rollbackFailedOptional Completed in 0ms
48 timing stage:runTopLevelLifecycles Completed in 1984ms
49 silly saveTree app
49 silly saveTree `-- is-positive@3.1.0
50 warn enoent ENOENT: no such file or directory, open '/app/package.json'
51 verbose enoent This is related to npm not being able to find a file.
52 warn app No description
53 warn app No repository field.
54 warn app No README data
55 warn app No license field.
56 verbose stack Error: Command failed: git clone --mirror -q git://github.com/kevva/is-positive.git
/root/.npm/_cacache/tmp/git-clone-4a209f79/.git
56 verbose stack fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-4a
209f79/.git'
56 verbose stack
56 verbose stack     at ChildProcess.exithandler (child_process.js:294:12)
56 verbose stack     at ChildProcess.emit (events.js:198:13)
56 verbose stack     at maybeClose (internal/child_process.js:982:16)
56 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
57 verbose cwd /app
58 verbose Linux 3.16.0-4-amd64
59 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "i" "kevva/is-positive"
60 verbose node v10.19.0
61 verbose npm  v6.10.3
62 error code 128
63 error Command failed: git clone --mirror -q git://github.com/kevva/is-positive.git /root/.npm/_cac
ache/tmp/git-clone-4a209f79/.git
63 error fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-4a209f79/.
git'
64 verbose exit [ 1, true ]
$ rm -rf node_modules package* && docker run --rm -itv $PWD:/app -w /app node:10.19.0-alpine3.11 ./2.sh 787bb66a6
...
+ npm i kevva/is-positive
npm WARN enoent ENOENT: no such file or directory, open '/app/package.json'
npm WARN app No description
npm WARN app No repository field.
npm WARN app No README data
npm WARN app No license field.

npm ERR! code 128
npm ERR! Command failed: git clone --mirror -q git://github.com/kevva/is-positive.git /root/.npm/_cac
ache/tmp/git-clone-e4d7aa7b/.git
npm ERR! fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-e4d7aa7b/.
git'
npm ERR!

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-02-24T03_17_29_342Z-debug.log
+ cat /root/.npm/_logs/2020-02-24T03_17_29_342Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node',
1 verbose cli   '/usr/local/bin/npm',
1 verbose cli   'i',
1 verbose cli   'kevva/is-positive' ]
2 info using npm@6.13.5
3 info using node@v10.19.0
4 verbose npm-session 38e7037f0c975b53
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 info lifecycle is-positive@3.1.0~prepack: is-positive@3.1.0
8 info lifecycle is-positive@3.1.0~postpack: is-positive@3.1.0
9 silly pacote git manifest for undefined@github:kevva/is-positive fetched in 906ms
10 timing stage:loadCurrentTree Completed in 919ms
11 silly install loadIdealTree
12 silly install cloneCurrentTreeToIdealTree
13 timing stage:loadIdealTree:cloneCurrentTree Completed in 0ms
14 silly install loadShrinkwrap
15 timing stage:loadIdealTree:loadShrinkwrap Completed in 1ms
16 silly install loadAllDepsIntoIdealTree
17 silly resolveWithNewModule is-positive@3.1.0 checking installable status
18 timing stage:loadIdealTree:loadAllDepsIntoIdealTree Completed in 5ms
19 timing stage:loadIdealTree Completed in 6ms
20 silly currentTree app
21 silly idealTree app
21 silly idealTree `-- is-positive@3.1.0
22 silly install generateActionsToTake
23 timing stage:generateActionsToTake Completed in 4ms
24 silly diffTrees action count 1
25 silly diffTrees add is-positive@3.1.0
26 silly decomposeActions action count 8
27 silly decomposeActions fetch is-positive@3.1.0
28 silly decomposeActions extract is-positive@3.1.0
29 silly decomposeActions preinstall is-positive@3.1.0
30 silly decomposeActions build is-positive@3.1.0
31 silly decomposeActions install is-positive@3.1.0
32 silly decomposeActions postinstall is-positive@3.1.0
33 silly decomposeActions finalize is-positive@3.1.0
34 silly decomposeActions refresh-package-json is-positive@3.1.0
35 silly install executeActions
36 silly doSerial global-install 8
37 verbose correctMkdir /root/.npm/_locks correctMkdir not in flight; initializing
38 verbose lock using /root/.npm/_locks/staging-bd3355550c5a469e.lock for /app/node_modules/.staging
39 silly doParallel extract 1
40 silly extract is-positive@3.1.0
41 silly tarball no local data for github:kevva/is-positive. Extracting by manifest.
42 timing audit submit Completed in 788ms
43 http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/audits/quick 787ms
44 timing audit body Completed in 1ms
45 timing action:extract Completed in 1016ms
46 verbose unlock done using /root/.npm/_locks/staging-bd3355550c5a469e.lock for /app/node_modules/.s
taging
47 timing stage:rollbackFailedOptional Completed in 0ms
48 timing stage:runTopLevelLifecycles Completed in 1974ms
49 silly saveTree app
49 silly saveTree `-- is-positive@3.1.0
50 warn enoent ENOENT: no such file or directory, open '/app/package.json'
51 verbose enoent This is related to npm not being able to find a file.
52 warn app No description
53 warn app No repository field.
54 warn app No README data
55 warn app No license field.
56 verbose stack Error: Command failed: git clone --mirror -q git://github.com/kevva/is-positive.git
/root/.npm/_cacache/tmp/git-clone-e4d7aa7b/.git
56 verbose stack fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-e4
d7aa7b/.git'
56 verbose stack
56 verbose stack     at ChildProcess.exithandler (child_process.js:294:12)
56 verbose stack     at ChildProcess.emit (events.js:198:13)
56 verbose stack     at maybeClose (internal/child_process.js:982:16)
56 verbose stack     at Socket.stream.socket.on (internal/child_process.js:389:11)
56 verbose stack     at Socket.emit (events.js:198:13)
56 verbose stack     at Pipe._handle.close (net.js:607:12)
57 verbose cwd /app
58 verbose Linux 3.16.0-4-amd64
59 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "i" "kevva/is-positive"
60 verbose node v10.19.0
61 verbose npm  v6.13.5
62 error code 128
63 error Command failed: git clone --mirror -q git://github.com/kevva/is-positive.git /root/.npm/_cac
ache/tmp/git-clone-e4d7aa7b/.git
63 error fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-e4d7aa7b/.
git'
64 verbose exit [ 1, true ]
$ rm -rf node_modules package* && docker run --rm -itv $PWD:/app -w /app node:10.19.0-alpine3.11 ./1.sh 6dba897a1
...
+ npm i kevva/is-positive
npm WARN saveError ENOENT: no such file or directory, open '/app/package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open '/app/package.json'
npm WARN app No description
npm WARN app No repository field.
npm WARN app No README data
npm WARN app No license field.

+ is-positive@3.1.0
added 1 package from 1 contributor and audited 1 package in 1.789s
found 0 vulnerabilities
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment