keybase / node-installer

An installer/updater for the node client.
BSD 3-Clause "New" or "Revised" License
117 stars 9 forks source link

Not sure where keybase was installed #46

Open Floppy opened 10 years ago

Floppy commented 10 years ago

Just installed the CLI on OSX. I'm not a node user most of the time, so don't have things like standard paths set up for node binaries, etc, and am not really sure where they should be. The installer worked, but didn't give me a keybase command in my path, and also didn't tell me where that command had been put. I eventually found I could run ~/.npm/keybase/0.0.31/package/bin/main.js` to get the same effect, but I don't think this is the idea :)

It would be good to have a little more guidance for non-node users during install, particularly what should be added to the path.

Floppy commented 10 years ago

Oh, sorry, should this be in the keybase-issues repo? I just came straight to the issue list here. I can move it if you want.

Floppy commented 10 years ago

OK, so looking back at the main site, it's obvious I took the wrong route to installation. It's still a bit obscure though. I have it set up now, but a note somewhere (perhaps in this README) that installation is with npm, and that /usr/local/share/npm/bin/ should be in your path would be helpful for beginners.

sl4m commented 10 years ago

You can also set the prefix so that npm packages symlink properly to /usr/local/bin (notably useful for homebrew users).

npm config get prefix returned /usr/local/share/npm. Simply running npm config set prefix /usr/local fixed it for me without modifying PATH