all-contributors/cli

npm installation fails on debian

yarikoptic opened this issue · 5 comments

  • all-contributors-cli version: dunno
  • node version: v12.13.1
  • npm version: 6.14.4
(git-annex)lena:~/proj/ohbm2020-posters[gh-pages]git-annex
$> npm i -D all-contributors-cli             
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm ERR! code EINTEGRITY
npm ERR! sha1-tf1UIgqivFq1eqtxQMlAdUUDwac= integrity checksum failed when using sha1: wanted sha1-tf1UIgqivFq1eqtxQMlAdUUDwac= but got sha512-z4PhNX7vuL3xVChQ1m2AB9Yg5AULVxXcg/SpIdNs6c5H0NE8XYXysP+DGNKHfuwvY7kxvUdBeoGlODJ6+SfaPg== sha1-2jmj7l5rSw0yVb/vlWAYkK/YBwk=. (0 bytes)
+ all-contributors-cli@6.16.0
added 161 packages from 135 contributors and audited 161 packages in 14.453s

7 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

npm ERR! Callback called more than once.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/yoh/.npm/_logs/2020-06-27T23_09_54_002Z-debug.log
npm i -D all-contributors-cli  15.80s user 2.48s system 113% cpu 16.082 total

rerunning the command succeeds:

$> npm i -D all-contributors-cli
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
+ all-contributors-cli@6.16.0
updated 1 package and audited 161 packages in 6.248s
found 0 vulnerabilities



   ╭────────────────────────────────────────────────────────────────╮
   │                                                                │
   │      New patch version of npm available! 6.14.4 → 6.14.5       │
   │   Changelog: https://github.com/npm/cli/releases/tag/v6.14.5   │
   │               Run npm install -g npm to update!                │
   │                                                                │
   ╰────────────────────────────────────────────────────────────────╯

npm i -D all-contributors-cli  7.82s user 0.67s system 112% cpu 7.546 total

and seems to work

$> node_modules/.bin/all-contributors
? What do you want to do? 
❯ Add new contributor or edit contribution type 
  Re-generate the contributors list 
  Compare contributors from the repository with the credited ones 

so I guess the issue is just FTR and FYI, feel welcome to close

Have you managed to reproduce it with either all-contributors-cli or all-contributors-cli@latest or was that a one-off?

Hm, pardon my ignorance in all things of nodejs. do you mean I should try npm i -D all-contributors-cli@master?

Also may be it is of relevance: the directory where I ran it, already had package*.json files which got updated by the installation process: https://github.com/datalad-datasets/ohbm2020-posters

Hm, pardon my ignorance in all things of nodejs. do you mean I should try npm i -D all-contributors-cli@master

No, like npm i -D all-contributors-cli@latest (as in you install the latest release), just to see if it persist and what we could do about it.

eh, I am afraid I fail to reproduce original issue any way I had tried, e.g.

$> ( d=$(mktemp -d --tmpdir dl-XXXXXXX); git clone https://github.com/datalad-datasets/ohbm2020-posters $d && cd $d && pwd; npm i -D all-contributors-cli; )
Cloning into '/home/yoh/.tmp/dl-LwTZF6A'...
remote: Enumerating objects: 49, done.
remote: Counting objects: 100% (49/49), done.
remote: Compressing objects: 100% (40/40), done.
remote: Total 812 (delta 25), reused 17 (delta 9), pack-reused 763
Receiving objects: 100% (812/812), 6.89 MiB | 4.63 MiB/s, done.
Resolving deltas: 100% (498/498), done.
OHBM\ 2020\ Poster\ Numbering\ -\ AbstractsAdHocReport_2015_20200.tsv  package.json
README.md                                                              poster_downloads.csv
abstract.json                                                          poster_downloads_matches.csv
assets/                                                                posters-overrides.json
backend/                                                               posters.json
img/                                                                   room.html
index.html                                                             tools/
package-lock.json
/home/yoh/.tmp/dl-LwTZF6A
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
+ all-contributors-cli@6.16.0
added 161 packages from 135 contributors and audited 161 packages in 13.775s

7 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

( d=$(mktemp -d --tmpdir dl-XXXXXXX) ; git clone  $d && cd $d && pwd; npm i -)  18.09s user 2.80s system 118% cpu 17.696 total

so I guess it might have been some state of my $HOME or npm distribution at that point. Let's just close