Page MenuHomePhabricator

npm install gives Verification failed while extracting mediawiki-storage@https://github.com/wikimedia/analytics-mediawiki-storage/archive/master.tar.gz
Closed, ResolvedPublic

Description

Hello,

I tried to do npm install in my fresh clone of Dashiki, and it says this:

urbanecm@notebook (master u=) ~/unsynced/gerrit/analytics/dashiki
$ npm install
npm WARN tarball tarball data for mediawiki-storage@https://github.com/wikimedia/analytics-mediawiki-storage/archive/master.tar.gz (sha512-WBvfWIyHkK8nP11nxbX2Pqx0DEVNui658M9/iMtWTTQs+NIk+8FLd8MM9SYRZ/ShHQeJG0zbrr/JwFKZbuRouQ==) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for mediawiki-storage@https://github.com/wikimedia/analytics-mediawiki-storage/archive/master.tar.gz (sha512-WBvfWIyHkK8nP11nxbX2Pqx0DEVNui658M9/iMtWTTQs+NIk+8FLd8MM9SYRZ/ShHQeJG0zbrr/JwFKZbuRouQ==) seems to be corrupted. Trying one more time.
npm WARN tar ENOENT: no such file or directory, open '/home/urbanecm/unsynced/gerrit/analytics/dashiki/node_modules/.staging/split-a5011320/package.json'
npm WARN tar ENOENT: no such file or directory, open '/home/urbanecm/unsynced/gerrit/analytics/dashiki/node_modules/.staging/split-a5011320/.npmignore'                                                            npm WARN tar ENOENT: no such file or directory, open '/home/urbanecm/unsynced/gerrit/analytics/dashiki/node_modules/.staging/split-a5011320/LICENCE'
npm WARN tar ENOENT: no such file or directory, open '/home/urbanecm/unsynced/gerrit/analytics/dashiki/node_modules/.staging/split-a5011320/index.js'
npm WARN tar ENOENT: no such file or directory, open '/home/urbanecm/unsynced/gerrit/analytics/dashiki/node_modules/.staging/jshint-1b0495f0/src/vars.js'
npm WARN tar ENOENT: no such file or directory, open '/home/urbanecm/unsynced/gerrit/analytics/dashiki/node_modules/.staging/jshint-1b0495f0/src/prod-params.js'
npm WARN tar ENOENT: no such file or directory, lstat '/home/urbanecm/unsynced/gerrit/analytics/dashiki/node_modules/.staging/jshint-1b0495f0/src/reporters'
npm WARN tar ENOENT: no such file or directory, lstat '/home/urbanecm/unsynced/gerrit/analytics/dashiki/node_modules/.staging/jshint-1b0495f0/src/reporters'
[...]
npm WARN tar ENOENT: no such file or directory, open '/home/urbanecm/unsynced/gerrit/analytics/dashiki/node_modules/.staging/dygraphs-23828e21/bower.json'
npm WARN tar ENOENT: no such file or directory, open '/home/urbanecm/unsynced/gerrit/analytics/dashiki/node_modules/.staging/dygraphs-23828e21/check-combined-unaffected.sh'
npm WARN tar ENOENT: no such file or directory, open '/home/urbanecm/unsynced/gerrit/analytics/dashiki/node_modules/.staging/dygraphs-23828e21/closure-todo.txt'
npm WARN The package requirejs is included as both a dev and production dependency.

npm ERR! code EINTEGRITY
npm ERR! Verification failed while extracting mediawiki-storage@https://github.com/wikimedia/analytics-mediawiki-storage/archive/master.tar.gz:
npm ERR! Verification failed while extracting mediawiki-storage@https://github.com/wikimedia/analytics-mediawiki-storage/archive/master.tar.gz:
npm ERR! sha512-WBvfWIyHkK8nP11nxbX2Pqx0DEVNui658M9/iMtWTTQs+NIk+8FLd8MM9SYRZ/ShHQeJG0zbrr/JwFKZbuRouQ== integrity checksum failed when using sha512: wanted sha512-WBvfWIyHkK8nP11nxbX2Pqx0DEVNui658M9/iMtWTTQs+NIk+8FLd8MM9SYRZ/ShHQeJG0zbrr/JwFKZbuRouQ== but got sha512-1YjHlVa9NqbRzOfcfgXCmlZPEQG1xuq90NoiAbKfnFVmMvQJ+Vu2kCD0Z9aoBqV11StjDs7ZbiusanMoV7KAYg==. (51688 bytes)

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/urbanecm/.npm/_logs/2021-03-31T08_18_31_420Z-debug.log
urbanecm@notebook (master u=) ~/unsynced/gerrit/analytics/dashiki
$

Am I doing something wrong?

For reference:

urbanecm@notebook (master u=) ~/unsynced/gerrit/analytics/dashiki
$ npm --version
6.14.11
urbanecm@notebook (master u=) ~/unsynced/gerrit/analytics/dashiki
$ nodejs --version
v12.20.2
urbanecm@notebook (master u=) ~/unsynced/gerrit/analytics/dashiki
$

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
fdans moved this task from Incoming to Data Exploration Tools on the Analytics board.
fdans added a project: Analytics-Kanban.

I found that dashiki doesn't really build on more recent versions of node. I was able to build with node v6.17.1 (you can use nvm to pull in arbitrary versions). @Urbanecm: if you really want, you can do the same until we clean this up some more.

@mforns I tried to clean up https://github.com/wikimedia/analytics-mediawiki-storage to the point where dashiki could pick it up properly. I'm not sure who/what generated the "Releases" in the github repo, but if it was you, please make it build 0.6.0.

There are a million problems here, deprecations, vulnerabilities, the kinds of things that happen if we don't touch a repository for 2 years. We should decide what we're doing with this thing going forward.

Milimetric moved this task from Next Up to Done on the Analytics-Kanban board.

This "Done" makes me feel very gross. It's basically just that this repo is broken for newer versions of node/npm and the workaround is to use the older versions.

I found that dashiki doesn't really build on more recent versions of node. I was able to build with node v6.17.1 (you can use nvm to pull in arbitrary versions). @Urbanecm: if you really want, you can do the same until we clean this up some more.

Thanks for the info. To be honest, I was in a playful mood, and following https://wikitech.wikimedia.org/wiki/Analytics/Tutorials/Dashboards. Maybe that should be marked as deprecated, or updated with a note that v6.17.1 is the latest working node version?

Thanks, good point, I added a note at the beginning. It's not quite deprecated yet, we may decide it's a good idea and refresh it, wouldn't be terribly hard. But for now, the note will help nice folks like you not waste time.