keybase / keybase/keybase-issues

Update on Mavericks Destroys Keybase Command Line

Open
#926 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
899
Forks
40
PR merge metrics
No merged PRs in 30d

Description

I attempted to update keybase with "keybase update" after being unsuccessul with "keybase track max" (w/keybase suggesting the update).

Here's what I got:

C02M705CFD57:~ thomas.quinlan$ keybase update
info: Computed npm install prefix: /usr/local
info: Found keybase-installer: keybase-installer v0.1.22
info: Using default npm install prefix
info: Attempting software upgrade.....
info: Running `keybase-installer`
info: Made temporary directory: /var/folders/1q/xkxccbjd1713pn98pht7lw8w6zpbnj/T/keybase_install_jQFUQANgYY3ONIL9IG32Pg
info: Using keyset version v1
info: Fetching URL https://dist.keybase.io/sig/files/1/index.asc
info: Fetching URL https://dist.keybase.io/pkg/stable
info: Fetching URL https://dist.keybase.io/sig/files/1/keybase-0.4.14.tgz.asc
info: verified signature of keybase-0.4.14.tgz against keybase-0.4.14.tgz.asc
info: Running npm install keybase-0.4.14.tgz: this may take a minute, please be patient
npm ERR! error rolling back Error: EACCES, unlink '/usr/local/lib/node_modules/keybase'
npm ERR! error rolling back keybase@0.4.14 { [Error: EACCES, unlink '/usr/local/lib/node_modules/keybase']
npm ERR! error rolling back errno: 3,
npm ERR! error rolling back code: 'EACCES',
npm ERR! error rolling back path: '/usr/local/lib/node_modules/keybase' }
npm ERR! Error: EACCES, unlink '/usr/local/lib/node_modules/keybase'
npm ERR! { [Error: EACCES, unlink '/usr/local/lib/node_modules/keybase']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/usr/local/lib/node_modules/keybase' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! System Darwin 13.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "/var/folders/1q/xkxccbjd1713pn98pht7lw8w6zpbnj/T/keybase_install_jQFUQANgYY3ONIL9IG32Pg/keybase-0.4.14.tgz"
npm ERR! cwd /Users/thomas.quinlan
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path /usr/local/lib/node_modules/keybase
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, unlink '/usr/local/lib/node_modules/keybase'
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/thomas.quinlan/npm-debug.log
npm ERR! not ok code 0
info: cleaning up tmpdir /var/folders/1q/xkxccbjd1713pn98pht7lw8w6zpbnj/T/keybase_install_jQFUQANgYY3ONIL9IG32Pg
error: exit code 3
error: exit code 254
C02M705CFD57:~ thomas.quinlan$

Now when I attempt to run keybase, I get:

C02M705CFD57:~ thomas.quinlan$ keybase
-bash: /usr/local/bin/keybase: No such file or directory

It looks like the rollback that NPM was supposed to do didn't work at all.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the failed `keybase update` on the reported Mavericks setup and inspect the npm install and rollback behavior around `/usr/local/lib/node_modules/keybase`. Done means an update no longer removes the existing `/usr/local/bin/keybase` command when npm reports an EACCES failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.