Error installing 0.22.2 on smartos
We're on joyent smartos and trying to install the latest version of bunyan. We get the following error:
> sudo npm install -g bunyan
npm http GET https://registry.npmjs.org/bunyan
npm http 304 https://registry.npmjs.org/bunyan
npm http GET https://registry.npmjs.org/bunyan/-/bunyan-0.22.2.tgz
npm http 200 https://registry.npmjs.org/bunyan/-/bunyan-0.22.2.tgz
npm ERR! Error: shasum check failed for /root/tmp/npm-40271-roPKVW1y/1397169123678-0.7662867880426347/tmp.tgz
npm ERR! Expected: b110277a6eca7bd0a9725addcfdcd9781662e2a8
npm ERR! Actual: 20b4f57faff57cbb85041dd99fa7db3aba432f5a
npm ERR! From: https://registry.npmjs.org/bunyan/-/bunyan-0.22.2.tgz
npm ERR! at /opt/local/lib/node_modules/npm/node_modules/sha/index.js:38:8
npm ERR! at ReadStream.<anonymous> (/opt/local/lib/node_modules/npm/node_modules/sha/index.js:85:7)
npm ERR! at ReadStream.EventEmitter.emit (events.js:117:20)
npm ERR! at _stream_readable.js:920:16
npm ERR! at process._tickCallback (node.js:415:13)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System SunOS 5.11
npm ERR! command "/opt/local/bin/node" "/opt/local/bin/npm" "install" "-g" "bunyan"
npm ERR! cwd /root/tmp
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /root/tmp/npm-debug.log
npm ERR! not ok code 0
Version 0.22.1 installs fine. Any ideas?
Hrm, I can repro as well.
... but only on smartos. WTF?
@trentm I can repo on OSX. Might be npm issues? I know they were doing some work on tgz stuff earlier.
@rosskukulinski I was able to install just fine on OSX. Perhaps I have a "good" bunyan 0.22.2 in my npm cache on my OSX machine. Can you post the npm-debug.log for your OSX install failure somewhere, please?
Yep, here it is: https://gist.github.com/rosskukulinski/10432247
Also happens on Ubuntu.
Discussing on #npm now. See https://github.com/npm/npm/issues/5052
published a new rev, [email protected], to work around this.
Thanks so much! :smile: