krasimir / yez

Chrome extension that acts as terminal and task runner

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to install node module

hyperlink opened this issue · comments

npm ERR! Error: shasum check failed for /var/folders/24/n80dr_t91313h66bw65btxh80000gn/T/npm-33243-ylIcALkD/registry.npmjs.org/yez/-/yez-0.1.0.tgz
npm ERR! Expected: ed877509b196210cc98c0cd73669f990a40cf798
npm ERR! Actual:   56803b9f20b75338bbcac9a2a07c567b65c633ee
npm ERR! From:     https://registry.npmjs.org/yez/-/yez-0.1.0.tgz
npm ERR!     at /usr/local/lib/node_modules/npm/node_modules/sha/index.js:38:8
npm ERR!     at ReadStream.<anonymous> (/usr/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:919:16
npm ERR!     at process._tickCallback (node.js:419: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 Darwin 13.2.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "yez"
npm ERR! cwd /Users/xiaoxin/dev
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.4.13
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/xiaoxin/dev/npm-debug.log
npm ERR! not ok code 0

Same here:
OS X Mavericks (10.9.3)
Freshly installed node.js (v0.10.28) and npm (1.4.13) - installed from node-v0.10.28.pkg and npm self-updated

Thanks for the report. Working on the issue ...

Was having the same error and then npm picked up on 1.0.3 and that worked for me. This is sweet, grouping tasks with similar names ftw!

Hm ... it seems that there is a bug in the newest versions of npm. I'm trying to fix it right now, but this should work till I find the proper solution:

npm install -g https://registry.npmjs.org/yez/-/yez-1.0.4.tgz

@jonjaques: I successfully reproduced the bug under my Ubuntu and even 1.0.3 didn't work.

Anyways, @dlanznar and @hyperlink can you please try npm install -g yez again and if this doesn't the proposed line above.

Hm ... I run npm set registry https://registry.npmjs.org/ and then tried again npm install -g yez and everything works. So weird. I have node v0.10.25 and npm v1.3.24 installed.

Tried it again, first without any changes, then after "set registry" got the same error. Using the registry URL in the install command, and sudo, failed differently, with a json parsing/syntax error, apparently. Here's the session - hope it helps:

DJL-MacBookPro:~ davidlanznar$ npm install -g yez
npm ERR! Error: shasum check failed for /var/folders/67/6w566ffs2dl06w6xs92fm3w80000gp/T/npm-21028-ocs6C_Su/registry.npmjs.org/yez/-/yez-1.0.5.tgz
npm ERR! Expected: ab22713b604fda1889401a4f23316cdb9976e64e
npm ERR! Actual: dbdac7368fa937c546e0277dae05350874d2727a
npm ERR! From: https://registry.npmjs.org/yez/-/yez-1.0.5.tgz
npm ERR! at /usr/local/lib/node_modules/npm/node_modules/sha/index.js:38:8
npm ERR! at ReadStream. (/usr/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:919:16
npm ERR! at process._tickCallback (node.js:419: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 Darwin 13.2.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "yez"
npm ERR! cwd /Users/davidlanznar
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.4.13
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/davidlanznar/npm-debug.log
npm ERR! not ok code 0

DJL-MacBookPro:~ davidlanznar$ npm set registry https://registry.npmjs.org/
DJL-MacBookPro:~ davidlanznar$ npm install -g yez
npm ERR! Error: shasum check failed for /var/folders/67/6w566ffs2dl06w6xs92fm3w80000gp/T/npm-21035-TcaBWMK8/registry.npmjs.org/yez/-/yez-1.0.5.tgz
npm ERR! Expected: ab22713b604fda1889401a4f23316cdb9976e64e
npm ERR! Actual: dbdac7368fa937c546e0277dae05350874d2727a
npm ERR! From: https://registry.npmjs.org/yez/-/yez-1.0.5.tgz
npm ERR! at /usr/local/lib/node_modules/npm/node_modules/sha/index.js:38:8
npm ERR! at ReadStream. (/usr/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:919:16
npm ERR! at process._tickCallback (node.js:419: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 Darwin 13.2.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "yez"
npm ERR! cwd /Users/davidlanznar
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.4.13
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/davidlanznar/npm-debug.log
npm ERR! not ok code 0
DJL-MacBookPro:~ davidlanznar$ npm install -g https://registry.npmjs.org/yez/-/yez-1.0.4.tgz
npm ERR! Error: EACCES, mkdir '/usr/local/lib/node_modules/yez'
npm ERR! { [Error: EACCES, mkdir '/usr/local/lib/node_modules/yez']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/usr/local/lib/node_modules/yez',
npm ERR! fstream_type: 'Directory',
npm ERR! fstream_path: '/usr/local/lib/node_modules/yez',
npm ERR! fstream_class: 'DirWriter',
npm ERR! fstream_stack:
npm ERR! [ '/usr/local/lib/node_modules/npm/node_modules/fstream/lib/dir-writer.js:36:23',
npm ERR! '/usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:37:53',
npm ERR! 'Object.oncomplete (fs.js:107:15)' ] }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! System Darwin 13.2.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "https://registry.npmjs.org/yez/-/yez-1.0.4.tgz"
npm ERR! cwd /Users/davidlanznar
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.4.13
npm ERR! path /usr/local/lib/node_modules/yez
npm ERR! fstream_path /usr/local/lib/node_modules/yez
npm ERR! fstream_type Directory
npm ERR! fstream_class DirWriter
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, mkdir '/usr/local/lib/node_modules/yez'
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/dir-writer.js:36:23
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:37:53
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/davidlanznar/npm-debug.log
npm ERR! not ok code 0
DJL-MacBookPro:~ davidlanznar$ sudo npm install -g https://registry.npmjs.org/yez/-/yez-1.0.4.tgz
Password:
npm ERR! registry error parsing json
npm ERR! registry error parsing json
npm ERR! registry error parsing json
npm ERR! registry error parsing json
npm ERR! SyntaxError: Unexpected token <
npm ERR!
npm ERR!
npm ERR!
npm ERR!
npm ERR!
npm ERR! <title>503 No healthy backends</title>
npm ERR!
npm ERR!
npm ERR!

Error 503 No healthy backends


npm ERR!

No healthy backends


npm ERR!

Guru Meditation:


npm ERR!

XID: 1348350693


npm ERR!

npm ERR!

Varnish cache server


npm ERR!
npm ERR!
npm ERR!
npm ERR! at Object.parse (native)
npm ERR! at RegClient. (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:240:23)
npm ERR! at Request._callback (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:212:65)
npm ERR! at Request.self.callback (/usr/local/lib/node_modules/npm/node_modules/request/request.js:123:22)
npm ERR! at Request.EventEmitter.emit (events.js:98:17)
npm ERR! at Request. (/usr/local/lib/node_modules/npm/node_modules/request/request.js:893:14)
npm ERR! at Request.EventEmitter.emit (events.js:117:20)
npm ERR! at IncomingMessage. (/usr/local/lib/node_modules/npm/node_modules/request/request.js:844:12)
npm ERR! at IncomingMessage.EventEmitter.emit (events.js:117:20)
npm ERR! at _stream_readable.js:919:16
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 Darwin 13.2.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "https://registry.npmjs.org/yez/-/yez-1.0.4.tgz"
npm ERR! cwd /Users/davidlanznar
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.4.13
npm ERR! type unexpected_token
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/davidlanznar/npm-debug.log
npm ERR! not ok code 0
DJL-Mac

Actually npmjs.org doesn't respond at all at the moment. Let's wait a bit and try again. It's really really slow at the moment. At least to me, it shows me Error 503 backend read error when I try to open https://www.npmjs.org/

Now npmjs.org seems stable.

@krasimir npm install -g https://registry.npmjs.org/yez/-/yez-1.0.4.tgz Worked for me though with some warnings.

npm WARN unmet dependency /usr/local/lib/node_modules/yeoman/node_modules/grunt requires jshint@'~0.7.1' but will load
npm WARN unmet dependency /usr/local/lib/node_modules/jshint,
npm WARN unmet dependency which is version 2.3.0
npm WARN unmet dependency /usr/local/lib/node_modules/yeoman/node_modules/yeoman-generators requires cheerio@'~0.10.0' but will load
npm WARN unmet dependency /usr/local/lib/node_modules/yeoman/node_modules/cheerio,
npm WARN unmet dependency which is version 0.9.2

Sadly npm install -g yez does not work still.

Here's my npm version:

{ http_parser: '1.0',
  node: '0.10.28',
  v8: '3.14.5.9',
  ares: '1.9.0-DEV',
  uv: '0.10.27',
  zlib: '1.2.3',
  modules: '11',
  openssl: '1.0.1g',
  npm: '1.4.13' }

Hm ... damn. Ok, I'll have to investigate further. I'll probably install your version of npm and will try to reproduce the problem.

Found this solution after some googling:

npm install https://registry.npmjs.org/yez/-/yez-1.0.5.tgz
npm install -g yez

It will create node_modules directory in the cwd.

Aha ... so the installing of the module locally works. That's good, but now is the second line installing yez globally?

Yes, and the local module can be safely deleted afterwards. I don't know why this works.

http://stackoverflow.com/questions/20633898/shasum-check-failed-error-while-installing-phonegap

I think that npm creates some caches of its own things. I had a similar problem before and I remember that I deleted all the the global modules manually. Just after that everything works. Anyway I'm glad that you find a solution and it is documented here.

works for me as well. Thanks!

@dlanznar I'm glad. Did npm install -g yez works or some of the above tricks.

I tried something different. I republish the module from my virtual box and now it seems that everything is ok. I successfully reproduced the problem there and now it is gone. So, can someone test with the latest version (2.0.1).

Works great! 👍