holmari / gerritstats

Tool for creating statistics from a Gerrit repository
MIT License
193 stars 54 forks source link

Corrupted npm package #22

Closed cghislai closed 7 years ago

cghislai commented 7 years ago

Hi,

It looks like the npm 3.10.5 package in the dependencies is corrupted and the shasum check fails. I am behind a corporate proxy, but I doubt it is the cause: the downloaded tar archive cannot be processed by tar correctly neither.

Error:

:GerritStats:npmSetupnpm ERR! Linux 3.10.0-514.10.2.el7.x86_64
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "npm@3.10.5"
npm ERR! node v6.10.2
npm ERR! npm  v3.10.10

npm ERR! shasum check failed for /tmp/npm-83-dd032ba8/registry.npmjs.org/npm/-/npm-3.10.5.tgz
npm ERR! Expected: 4753bfbb1526077d61c3b6a251cff61a22206cc6
npm ERR! Actual:   d9eab943f20ae7a8d28f29f10c79f7a8e192bdf9
npm ERR! From:     https://registry.npmjs.org/npm/-/npm-3.10.5.tgz
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     /opt/gerritstats/gerritstats/GerritStats/npm-debug.log
 FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':GerritStats:npmSetup'.
> Process 'command 'npm'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
cghislai commented 7 years ago

Sorry it works fine at home - probably due to the corporate proxy

fengyedou commented 7 years ago

I met this issue too,can you share the solution how you resolved ?

cghislai commented 7 years ago

It was due to the corporate virus scanner. As the archive contained binaries, the proxy closed the connection during the scanning. Solution is to whitelist the url or to bring the binaries behind the firewall by other means.