npm / registry-issue-archive

An archive of the old npm registry issue tracker
https://npm.community
249 stars 47 forks source link

ERR_STREAM_WRITE_AFTER_END on npm install whateverpackage --global #353

Open xemasiv opened 6 years ago

xemasiv commented 6 years ago

npm@6.0.1 : node@9.8.0 win7 x64

Commands giving error:

npm install rollup --global
npm install parcel-bundler --global

Works with yarn;

yarn global add parcel-bundler
yarn global add rollup

Error:

C:\cygwin64\home\1234\>npm install --global rollup
npm ERR! code ERR_STREAM_WRITE_AFTER_END
npm ERR! write after end

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\1234\AppData\Roaming\npm-cache\_logs\2018-06-12T01_42_25_5
01Z-debug.log

Debug log:

C:\cygwin64\home\1234\>cat C:\Users\1234\AppData\Roaming\npm-cache\_logs
\2018-06-12T01_42_25_501Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli   'C:\\Users\\1234\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\
\npm-cli.js',
1 verbose cli   'install',
1 verbose cli   '--global',
1 verbose cli   'rollup' ]
2 info using npm@6.0.1
3 info using node@v9.8.0
4 verbose npm-session 89b4bd6dffe8cb60
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 http fetch GET 200 https://registry.npmjs.org/rollup 4839ms
8 silly pacote tag manifest for rollup@latest fetched in 5639ms
9 timing stage:loadCurrentTree Completed in 10767ms
10 silly install loadIdealTree
11 silly install cloneCurrentTreeToIdealTree
12 timing stage:loadIdealTree:cloneCurrentTree Completed in 1ms
13 silly install loadShrinkwrap
14 timing stage:loadIdealTree:loadShrinkwrap Completed in 1ms
15 silly install loadAllDepsIntoIdealTree
16 silly resolveWithNewModule rollup@0.60.2 checking installable status
17 http fetch GET 200 https://registry.npmjs.org/@types%2festree 326ms
18 silly pacote version manifest for @types/estree@0.0.39 fetched in 374ms
19 silly resolveWithNewModule @types/estree@0.0.39 checking installable status
20 http fetch GET 200 https://registry.npmjs.org/@types%2fnode 2601ms
21 silly pacote range manifest for @types/node@* fetched in 2645ms
22 silly resolveWithNewModule @types/node@10.3.2 checking installable status
23 timing stage:loadIdealTree:loadAllDepsIntoIdealTree Completed in 2657ms
24 timing stage:loadIdealTree Completed in 2660ms
25 silly currentTree npm
26 silly idealTree npm
26 silly idealTree `-- rollup@0.60.2
26 silly idealTree   +-- @types/estree@0.0.39
26 silly idealTree   `-- @types/node@10.3.2
27 silly install generateActionsToTake
28 timing stage:generateActionsToTake Completed in 6ms
29 silly diffTrees action count 3
30 silly diffTrees add @types/estree@0.0.39
31 silly diffTrees add @types/node@10.3.2
32 silly diffTrees add rollup@0.60.2
33 silly decomposeActions action count 24
34 silly decomposeActions fetch @types/estree@0.0.39
35 silly decomposeActions extract @types/estree@0.0.39
36 silly decomposeActions preinstall @types/estree@0.0.39
37 silly decomposeActions build @types/estree@0.0.39
38 silly decomposeActions install @types/estree@0.0.39
39 silly decomposeActions postinstall @types/estree@0.0.39
40 silly decomposeActions finalize @types/estree@0.0.39
41 silly decomposeActions refresh-package-json @types/estree@0.0.39
42 silly decomposeActions fetch @types/node@10.3.2
43 silly decomposeActions extract @types/node@10.3.2
44 silly decomposeActions preinstall @types/node@10.3.2
45 silly decomposeActions build @types/node@10.3.2
46 silly decomposeActions install @types/node@10.3.2
47 silly decomposeActions postinstall @types/node@10.3.2
48 silly decomposeActions finalize @types/node@10.3.2
49 silly decomposeActions refresh-package-json @types/node@10.3.2
50 silly decomposeActions fetch rollup@0.60.2
51 silly decomposeActions extract rollup@0.60.2
52 silly decomposeActions preinstall rollup@0.60.2
53 silly decomposeActions build rollup@0.60.2
54 silly decomposeActions install rollup@0.60.2
55 silly decomposeActions postinstall rollup@0.60.2
56 silly decomposeActions finalize rollup@0.60.2
57 silly decomposeActions refresh-package-json rollup@0.60.2
58 silly install executeActions
59 silly doSerial global-install 24
60 verbose correctMkdir C:\Users\1234\AppData\Roaming\npm-cache\_locks correctMk
dir not in flight; initializing
61 verbose lock using C:\Users\1234\AppData\Roaming\npm-cache\_locks\staging-d18
553b96a1bf442.lock for C:\Users\1234\AppData\Roaming\npm\node_modules\.staging
62 silly doParallel extract 3
63 silly extract @types/estree@0.0.39
64 silly extract @types/node@10.3.2
65 silly extract rollup@0.60.2
66 silly tarball trying @types/estree@0.0.39 by hash: sha512-EYNwp3bU+98cpU4lAWY
YL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==
67 silly tarball trying @types/node@* by hash: sha512-9NfEUDp3tgRhmoxzTpTo+lq+KI
VFxZahuRX0LHF/9IzKHaWuoWsIrrJ61zw5cnnlGINX8lqJzXYfQTOICS5Q+A==
68 silly tarball trying rollup@latest by hash: sha512-tu8VAwKasU/fYUA2dnzg3ttKLm
wiscBG23KZ0jx/8ubEvEb/cQ0+kwzRDRsDpy709g/R4vqdFGago9i4W+87HQ==
69 silly tarball no local data for @types/estree@0.0.39. Extracting by manifest.

70 silly tarball no local data for @types/node@*. Extracting by manifest.
71 silly tarball no local data for rollup@latest. Extracting by manifest.
72 http fetch GET 200 https://registry.npmjs.org/@types/estree/-/estree-0.0.39.t
gz 759ms
73 silly extract @types/estree@0.0.39 extracted to C:\Users\1234\AppData\Roaming
\npm\node_modules\.staging\@types\estree-87edd508 (781ms)
74 verbose stack Error [ERR_STREAM_WRITE_AFTER_END]: write after end
74 verbose stack     at writeAfterEnd (_stream_writable.js:237:12)
74 verbose stack     at PassThrough.Writable.write (_stream_writable.js:287:5)
74 verbose stack     at PassThrough.Writable.end (_stream_writable.js:572:10)
74 verbose stack     at ReadEntry.entry.on (C:\Users\1234\AppData\Roaming\npm\no
de_modules\npm\node_modules\pacote\lib\extract-stream.js:19:41)
74 verbose stack     at ReadEntry.emit (events.js:185:15)
74 verbose stack     at ReadEntry.emit (C:\Users\1234\AppData\Roaming\npm\node_m
odules\npm\node_modules\tar\node_modules\minipass\index.js:296:25)
74 verbose stack     at ReadEntry.[maybeEmitEnd] (C:\Users\1234\AppData\Roaming\
npm\node_modules\npm\node_modules\tar\node_modules\minipass\index.js:249:12)
74 verbose stack     at ReadEntry.end (C:\Users\1234\AppData\Roaming\npm\node_mo
dules\npm\node_modules\tar\node_modules\minipass\index.js:162:27)
74 verbose stack     at Unpack.[consumeBody] (C:\Users\1234\AppData\Roaming\npm\
node_modules\npm\node_modules\tar\lib\parse.js:210:13)
74 verbose stack     at Unpack.[consumeChunkSub] (C:\Users\1234\AppData\Roaming\
npm\node_modules\npm\node_modules\tar\lib\parse.js:391:40)
74 verbose stack     at Unpack.[consumeChunk] (C:\Users\1234\AppData\Roaming\npm
\node_modules\npm\node_modules\tar\lib\parse.js:362:30)
74 verbose stack     at Unzip.(anonymous function).on.chunk (C:\Users\1234\AppDa
ta\Roaming\npm\node_modules\npm\node_modules\tar\lib\parse.js:291:59)
74 verbose stack     at Unzip.emit (events.js:180:13)
74 verbose stack     at Unzip.emit (C:\Users\1234\AppData\Roaming\npm\node_modul
es\npm\node_modules\tar\node_modules\minipass\index.js:296:25)
74 verbose stack     at Unzip.write (C:\Users\1234\AppData\Roaming\npm\node_modu
les\npm\node_modules\tar\node_modules\minipass\index.js:99:17)
74 verbose stack     at Unzip.write (C:\Users\1234\AppData\Roaming\npm\node_modu
les\npm\node_modules\tar\node_modules\minizlib\index.js:284:29)
75 verbose cwd C:\cygwin64\home\1234\fugitive
76 verbose Windows_NT 6.1.7601
77 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\1234\\AppData\
\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "--global" "rollup"

78 verbose node v9.8.0
79 verbose npm  v6.0.1
80 error code ERR_STREAM_WRITE_AFTER_END
81 error write after end
82 verbose exit [ 1, true ]

C:\cygwin64\home\1234\>