"npm install -g keybase-installer" failed to fetch from registry: keybase-installer #121

Open
lizdenys opened this Issue Mar 6, 2014 · 7 comments

Comments

Projects
None yet
4 participants
@lizdenys

lizdenys commented Mar 6, 2014

I got the following output on Ubuntu 12.04:

info it worked if it ends with ok
verbose cli [ 'node', '/usr/bin/npm', 'install', '-g', 'keybase-installer' ]
info using npm@1.1.4
info using node@v0.6.12
verbose config file /home/liz/.npmrc
verbose config file /usr/etc/npmrc
verbose config file /usr/share/npm/npmrc
verbose umasking from 77 755
verbose cache add [ 'keybase-installer', null ]
silly cache add: name, spec, args [ undefined, 'keybase-installer', [ 'keybase-installer', null ] ]
verbose parsed url { pathname: 'keybase-installer',
verbose parsed url path: 'keybase-installer',
verbose parsed url href: 'keybase-installer' }
verbose addNamed [ 'keybase-installer', '' ]
verbose addNamed [ null, '' ]
silly name, range, hasData [ 'keybase-installer', '', false ]
verbose raw, before any munging keybase-installer
verbose url resolving [ 'https://registry.npmjs.org/', './keybase-installer' ]
verbose url resolved https://registry.npmjs.org/keybase-installer
http GET https://registry.npmjs.org/keybase-installer
ERR! Error: failed to fetch from registry: keybase-installer
ERR! at /usr/share/npm/lib/utils/npm-registry-client/get.js:139:12
ERR! at cb (/usr/share/npm/lib/utils/npm-registry-client/request.js:31:9)
ERR! at Request._callback (/usr/share/npm/lib/utils/npm-registry-client/request.js:136:18)
ERR! at Request.callback (/usr/lib/nodejs/request/main.js:119:22)
ERR! at Request. (/usr/lib/nodejs/request/main.js:212:58)
ERR! at Request.emit (events.js:88:20)
ERR! at ClientRequest. (/usr/lib/nodejs/request/main.js:412:12)
ERR! at ClientRequest.emit (events.js:67:17)
ERR! at HTTPParser.onIncoming (http.js:1261:11)
ERR! at HTTPParser.onHeadersComplete (http.js:102:31)
ERR! You may report this log at:
ERR! http://bugs.debian.org/npm
ERR! or use
ERR! reportbug --attach /home/liz/npm-debug.log npm
ERR!
ERR! System Linux 3.2.0-59-generic
ERR! command "node" "/usr/bin/npm" "install" "-g" "keybase-installer"
ERR! cwd /home/liz
ERR! node -v v0.6.12
ERR! npm -v 1.1.4
ERR! message failed to fetch from registry: keybase-installer
verbose exit [ 1, true ]

@maxtaco

This comment has been minimized.

Show comment
Hide comment
@maxtaco

maxtaco Mar 6, 2014

Contributor

You have a very old version of node.
On Mar 6, 2014 3:24 PM, "Liz A. Denys" notifications@github.com wrote:

I got the following output on Ubuntu 12.04:

info it worked if it ends with ok
verbose cli [ 'node', '/usr/bin/npm', 'install', '-g', 'keybase-installer'
]
info using npm@1.1.4
info using node@v0.6.12
verbose config file /home/liz/.npmrc
verbose config file /usr/etc/npmrc
verbose config file /usr/share/npm/npmrc
verbose umasking from 77 755
verbose cache add [ 'keybase-installer', null ]
silly cache add: name, spec, args [ undefined, 'keybase-installer', [
'keybase-installer', null ] ]
verbose parsed url { pathname: 'keybase-installer',
verbose parsed url path: 'keybase-installer',
verbose parsed url href: 'keybase-installer' }
verbose addNamed [ 'keybase-installer', '' ]
verbose addNamed [ null, '' ]
silly name, range, hasData [ 'keybase-installer', '', false ]
verbose raw, before any munging keybase-installer
verbose url resolving [ 'https://registry.npmjs.org/',
'./keybase-installer' ]
verbose url resolved https://registry.npmjs.org/keybase-installer
http GET https://registry.npmjs.org/keybase-installer
ERR! Error: failed to fetch from registry: keybase-installer
ERR! at /usr/share/npm/lib/utils/npm-registry-client/get.js:139:12
ERR! at cb (/usr/share/npm/lib/utils/npm-registry-client/request.js:31:9)
ERR! at Request._callback
(/usr/share/npm/lib/utils/npm-registry-client/request.js:136:18)
ERR! at Request.callback (/usr/lib/nodejs/request/main.js:119:22)
ERR! at Request. (/usr/lib/nodejs/request/main.js:212:58)
ERR! at Request.emit (events.js:88:20)
ERR! at ClientRequest. (/usr/lib/nodejs/request/main.js:412:12)
ERR! at ClientRequest.emit (events.js:67:17)
ERR! at HTTPParser.onIncoming (http.js:1261:11)
ERR! at HTTPParser.onHeadersComplete (http.js:102:31)
ERR! You may report this log at:
ERR! http://bugs.debian.org/npm
ERR! or use
ERR! reportbug --attach /home/liz/npm-debug.log npm
ERR!
ERR! System Linux 3.2.0-59-generic
ERR! command "node" "/usr/bin/npm" "install" "-g" "keybase-installer"
ERR! cwd /home/liz
ERR! node -v v0.6.12
ERR! npm -v 1.1.4
ERR! message failed to fetch from registry: keybase-installer
verbose exit [ 1, true ]

Reply to this email directly or view it on GitHubhttps://github.com/keybase/keybase-issues/issues/121
.

Contributor

maxtaco commented Mar 6, 2014

You have a very old version of node.
On Mar 6, 2014 3:24 PM, "Liz A. Denys" notifications@github.com wrote:

I got the following output on Ubuntu 12.04:

info it worked if it ends with ok
verbose cli [ 'node', '/usr/bin/npm', 'install', '-g', 'keybase-installer'
]
info using npm@1.1.4
info using node@v0.6.12
verbose config file /home/liz/.npmrc
verbose config file /usr/etc/npmrc
verbose config file /usr/share/npm/npmrc
verbose umasking from 77 755
verbose cache add [ 'keybase-installer', null ]
silly cache add: name, spec, args [ undefined, 'keybase-installer', [
'keybase-installer', null ] ]
verbose parsed url { pathname: 'keybase-installer',
verbose parsed url path: 'keybase-installer',
verbose parsed url href: 'keybase-installer' }
verbose addNamed [ 'keybase-installer', '' ]
verbose addNamed [ null, '' ]
silly name, range, hasData [ 'keybase-installer', '', false ]
verbose raw, before any munging keybase-installer
verbose url resolving [ 'https://registry.npmjs.org/',
'./keybase-installer' ]
verbose url resolved https://registry.npmjs.org/keybase-installer
http GET https://registry.npmjs.org/keybase-installer
ERR! Error: failed to fetch from registry: keybase-installer
ERR! at /usr/share/npm/lib/utils/npm-registry-client/get.js:139:12
ERR! at cb (/usr/share/npm/lib/utils/npm-registry-client/request.js:31:9)
ERR! at Request._callback
(/usr/share/npm/lib/utils/npm-registry-client/request.js:136:18)
ERR! at Request.callback (/usr/lib/nodejs/request/main.js:119:22)
ERR! at Request. (/usr/lib/nodejs/request/main.js:212:58)
ERR! at Request.emit (events.js:88:20)
ERR! at ClientRequest. (/usr/lib/nodejs/request/main.js:412:12)
ERR! at ClientRequest.emit (events.js:67:17)
ERR! at HTTPParser.onIncoming (http.js:1261:11)
ERR! at HTTPParser.onHeadersComplete (http.js:102:31)
ERR! You may report this log at:
ERR! http://bugs.debian.org/npm
ERR! or use
ERR! reportbug --attach /home/liz/npm-debug.log npm
ERR!
ERR! System Linux 3.2.0-59-generic
ERR! command "node" "/usr/bin/npm" "install" "-g" "keybase-installer"
ERR! cwd /home/liz
ERR! node -v v0.6.12
ERR! npm -v 1.1.4
ERR! message failed to fetch from registry: keybase-installer
verbose exit [ 1, true ]

Reply to this email directly or view it on GitHubhttps://github.com/keybase/keybase-issues/issues/121
.

@lizdenys

This comment has been minimized.

Show comment
Hide comment
@lizdenys

lizdenys Mar 6, 2014

I just have the version from apt-get, standard precise repository. What version does keybase require? I can't find that on your site.

lizdenys commented Mar 6, 2014

I just have the version from apt-get, standard precise repository. What version does keybase require? I can't find that on your site.

@maxtaco

This comment has been minimized.

Show comment
Hide comment
@maxtaco

maxtaco Mar 6, 2014

Contributor

Sorry to be brusque before, I was running between meeting and tapping out on my mobile. This has been an issue throughout. We require v0.10.x+, and we've gotten lots of feedback about people failing with v0.8. This is the first bug report about v0.6, which, it's been pointed out to me, comes via apt on 12.04 LTS. There is a slight chance we can support v0.8 (I haven't looked too deeply into it), but I think v0.6 will not be feasible.

We need to fix the documentation here, indeed. npm has a mechanism to reject installs on older node engines, and we recently started using that, but unfortunately, npm will take a lack of requirement to mean that any version is supported, and keep on falling back to old versions of keybase-installer until it finds one of our older distributions. So we haven't found a good programmatic solution to telling people about older nodes we can't support.

Thanks for your patience, sorry about this bug!

Contributor

maxtaco commented Mar 6, 2014

Sorry to be brusque before, I was running between meeting and tapping out on my mobile. This has been an issue throughout. We require v0.10.x+, and we've gotten lots of feedback about people failing with v0.8. This is the first bug report about v0.6, which, it's been pointed out to me, comes via apt on 12.04 LTS. There is a slight chance we can support v0.8 (I haven't looked too deeply into it), but I think v0.6 will not be feasible.

We need to fix the documentation here, indeed. npm has a mechanism to reject installs on older node engines, and we recently started using that, but unfortunately, npm will take a lack of requirement to mean that any version is supported, and keep on falling back to old versions of keybase-installer until it finds one of our older distributions. So we haven't found a good programmatic solution to telling people about older nodes we can't support.

Thanks for your patience, sorry about this bug!

@maxtaco

This comment has been minimized.

Show comment
Hide comment
@maxtaco

maxtaco Mar 6, 2014

Contributor

A quick update is that I used npm deprecate to wipe out all versions of keybase-installer before v0.1.8. So now, hopefully, you should get a decent error message from npm when you try to run npm install -g keybase-installer. It should hopefully tell you that your version of node isn't supported by our software. If you get a chance, and if you haven't upgraded node, could you let me know if you're getting a better error message now? Many thanks.

Contributor

maxtaco commented Mar 6, 2014

A quick update is that I used npm deprecate to wipe out all versions of keybase-installer before v0.1.8. So now, hopefully, you should get a decent error message from npm when you try to run npm install -g keybase-installer. It should hopefully tell you that your version of node isn't supported by our software. If you get a chance, and if you haven't upgraded node, could you let me know if you're getting a better error message now? Many thanks.

@DZPM

This comment has been minimized.

Show comment
Hide comment
@DZPM

DZPM Mar 27, 2014

Had same problem here. The error was not descriptive, but figured out it could be the version.

Updated to a newer npm using this instructions:
http://stackoverflow.com/questions/12913141/installing-from-npm-fails/21715730#21715730

DZPM commented Mar 27, 2014

Had same problem here. The error was not descriptive, but figured out it could be the version.

Updated to a newer npm using this instructions:
http://stackoverflow.com/questions/12913141/installing-from-npm-fails/21715730#21715730

@maxtaco

This comment has been minimized.

Show comment
Hide comment
@maxtaco

maxtaco Apr 4, 2014

Contributor

Hi @lizdenys , thanks for sparking the HN discussion about Keybase this week, always good to have smart people talking about the system.

The good news is: hosted-private-key-less, install-less identity proofs are now live on keybase.io. Check it out and please let us know if you have any issues. Cheers.

Contributor

maxtaco commented Apr 4, 2014

Hi @lizdenys , thanks for sparking the HN discussion about Keybase this week, always good to have smart people talking about the system.

The good news is: hosted-private-key-less, install-less identity proofs are now live on keybase.io. Check it out and please let us know if you have any issues. Cheers.

@a-kr

This comment has been minimized.

Show comment
Hide comment
@a-kr

a-kr May 23, 2014

Encountered this problem right now (I also use Ubuntu 12.04), the error message is still not descriptive:

~$ npm install -g keybase-installer
npm http GET https://registry.npmjs.org/keybase-installer

npm ERR! Error: failed to fetch from registry: keybase-installer
npm ERR!     at /usr/share/npm/lib/utils/npm-registry-client/get.js:139:12
npm ERR!     at cb (/usr/share/npm/lib/utils/npm-registry-client/request.js:31:9)
npm ERR!     at Request._callback (/usr/share/npm/lib/utils/npm-registry-client/request.js:136:18)
npm ERR!     at Request.callback (/usr/lib/nodejs/request/main.js:119:22)
npm ERR!     at Request.<anonymous> (/usr/lib/nodejs/request/main.js:212:58)
npm ERR!     at Request.emit (events.js:88:20)
npm ERR!     at ClientRequest.<anonymous> (/usr/lib/nodejs/request/main.js:412:12)
npm ERR!     at ClientRequest.emit (events.js:67:17)
npm ERR!     at HTTPParser.onIncoming (http.js:1261:11)
npm ERR!     at HTTPParser.onHeadersComplete (http.js:102:31)
npm ERR! You may report this log at:
npm ERR!     <http://bugs.debian.org/npm>
npm ERR! or use
npm ERR!     reportbug --attach /home/alexey/npm-debug.log npm
npm ERR!
npm ERR! System Linux 3.8.0-37-generic
npm ERR! command "node" "/usr/bin/npm" "install" "-g" "keybase-installer"
npm ERR! cwd /home/alexey
npm ERR! node -v v0.6.12
npm ERR! npm -v 1.1.4
npm ERR! message failed to fetch from registry: keybase-installer
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /home/alexey/npm-debug.log
npm not ok

Updating nodejs, of course, worked.

I think it would be helpful to state the minimum required version of nodejs on https://keybase.io/docs/command_line/prerequisites or https://keybase.io/docs/command_line/installation, and perhaps add a note along the lines of "if you get failed to fetch from registry message, try updating nodejs". Since Ubuntu 12.04 is a LTS release, I expect many people to face this issue.

a-kr commented May 23, 2014

Encountered this problem right now (I also use Ubuntu 12.04), the error message is still not descriptive:

~$ npm install -g keybase-installer
npm http GET https://registry.npmjs.org/keybase-installer

npm ERR! Error: failed to fetch from registry: keybase-installer
npm ERR!     at /usr/share/npm/lib/utils/npm-registry-client/get.js:139:12
npm ERR!     at cb (/usr/share/npm/lib/utils/npm-registry-client/request.js:31:9)
npm ERR!     at Request._callback (/usr/share/npm/lib/utils/npm-registry-client/request.js:136:18)
npm ERR!     at Request.callback (/usr/lib/nodejs/request/main.js:119:22)
npm ERR!     at Request.<anonymous> (/usr/lib/nodejs/request/main.js:212:58)
npm ERR!     at Request.emit (events.js:88:20)
npm ERR!     at ClientRequest.<anonymous> (/usr/lib/nodejs/request/main.js:412:12)
npm ERR!     at ClientRequest.emit (events.js:67:17)
npm ERR!     at HTTPParser.onIncoming (http.js:1261:11)
npm ERR!     at HTTPParser.onHeadersComplete (http.js:102:31)
npm ERR! You may report this log at:
npm ERR!     <http://bugs.debian.org/npm>
npm ERR! or use
npm ERR!     reportbug --attach /home/alexey/npm-debug.log npm
npm ERR!
npm ERR! System Linux 3.8.0-37-generic
npm ERR! command "node" "/usr/bin/npm" "install" "-g" "keybase-installer"
npm ERR! cwd /home/alexey
npm ERR! node -v v0.6.12
npm ERR! npm -v 1.1.4
npm ERR! message failed to fetch from registry: keybase-installer
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /home/alexey/npm-debug.log
npm not ok

Updating nodejs, of course, worked.

I think it would be helpful to state the minimum required version of nodejs on https://keybase.io/docs/command_line/prerequisites or https://keybase.io/docs/command_line/installation, and perhaps add a note along the lines of "if you get failed to fetch from registry message, try updating nodejs". Since Ubuntu 12.04 is a LTS release, I expect many people to face this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment