npm / cli

the package manager for JavaScript
https://docs.npmjs.com/cli/
Other
8.38k stars 3.1k forks source link

[BUG] npm install hanging #1446

Closed balupton closed 4 years ago

balupton commented 4 years ago

steps to reproduce:

git clone git@github.com:bevry/valid-directory.git
cd valid-directory
git checkout fab6e249e8aba5718efb3d770addf5bf3bdfb44b
npm install projectz@latest assert-helpers@latest @bevry/update-contributors@latest --verbose -D

results in

npm info it worked if it ends with ok
npm verb cli [
npm verb cli   '/usr/local/Cellar/node/14.4.0/bin/node',
npm verb cli   '/usr/local/bin/npm',
npm verb cli   'install',
npm verb cli   'projectz@latest',
npm verb cli   'assert-helpers@latest',
npm verb cli   '@bevry/update-contributors@latest',
npm verb cli   '--verbose',
npm verb cli   '-D'
npm verb cli ]
npm info using npm@6.14.5
npm info using node@v14.4.0
npm verb npm-session 45dfcfd1d14b1941
npm http fetch GET 304 https://registry.npmjs.org/assert-helpers 234ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/projectz 239ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/@bevry%2fupdate-contributors 242ms (from cache)
npm timing stage:loadCurrentTree Completed in 300ms
npm timing stage:loadIdealTree:cloneCurrentTree Completed in 0ms
npm timing stage:loadIdealTree:loadShrinkwrap Completed in 207ms
npm http fetch GET 304 https://registry.npmjs.org/eslint-config-bevry 50ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/eslint-plugin-prettier 59ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/kava 62ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/valid-directory 71ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/getcontributors 147ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/eslint 151ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/typedoc 163ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/make-deno-edition 168ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/eslint/-/eslint-7.3.0.tgz 63ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/@typescript-eslint%2feslint-plugin 242ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/@typescript-eslint%2fparser 258ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/typescript 286ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/semver 42ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/tsutils 53ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/@typescript-eslint%2fexperimental-utils 69ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/@types%2fjson-schema 36ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/@typescript-eslint%2ftypescript-estree 66ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/@types%2feslint-visitor-keys 38ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/ansicolors 66ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/diff 66ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/@types%2fdiff 69ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/errlop 70ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/valid-module 76ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/@types%2fansicolors 80ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/@types%2fnode 90ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/enquirer 34ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/ansi-colors 31ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/fdir 47ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/@types%2frimraf 60ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/rimraf 59ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/await-spawn 61ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/get-cli-arg 62ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/mkdirp 65ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/@types%2fglob 40ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/@types%2fminimatch 34ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/bl 31ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/readable-stream 36ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/string_decoder 46ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/util-deprecate 45ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/normalify 42ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/eslint-plugin-babel 33ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/eslint-rule-composer 34ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/event-emitter-grouped 32ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/unbounded 40ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/spdx-expression-parse 72ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/cson-parser 74ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/fellow 73ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/badges 77ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/caterpillar 79ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/spdx-license-list 82ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/caterpillar-filter 84ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/typechecker 85ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/caterpillar-human 91ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/handlebars 46ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/lunr 50ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/shelljs 52ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/typedoc-default-themes 53ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/marked 55ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/fs-extra 57ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/highlight.js 60ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/jsonfile 34ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/universalify 46ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/uglify-js 42ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/source-map 46ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/neo-async 47ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/wordwrap 49ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/commander 36ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/interpret 31ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/rechoir 46ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/resolve 33ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/path-parse 39ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/cross-fetch 38ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/node-fetch 30ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/rfc-log-levels 42ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/get-current-line 49ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/ansistyles 36ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/coffeescript 29ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/spdx-license-ids 35ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/spdx-exceptions 39ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/getrepos 45ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/githubauthreq 48ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/simplytyped 55ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/native-promise-pool 46ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/editions 36ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/logger-clearable 38ms (from cache)
npm timing stage:loadIdealTree:loadAllDepsIntoIdealTree Completed in 2752ms
npm timing stage:loadIdealTree Completed in 3186ms
npm timing stage:generateActionsToTake Completed in 102ms
^C^C^C^Cfish: 'npm install projectz@latest ass…' terminated by signal SIGKILL (Forced quit)

which shoots cpu usage up to 100% until it is killed by activity monitor

> npm -v
6.14.5
> node -v
v14.4.0
> uname -a
Darwin bevrymemacbook.local 19.5.0 Darwin Kernel Version 19.5.0: Tue May 26 20:41:44 PDT 2020; root:xnu-6153.121.2~2/RELEASE_X86_64 x86_64
balupton commented 4 years ago

I suspect this was caused on my own side, by this botched batch of published versions

https://github.com/bevry/istextorbinary/issues/62

https://github.com/bevry/badges/issues/57