Homebrew without admin account?

(Diego Eann) #1

As a student we use school owned computer where I am not the Admin account.
I have seen several different methods floating around, but am not sure if there is an “official” way.
Diego E.

If it helps I run a MacBook Air with El Capitan

(Mike McQuaid) #2

There’s none that are officially supported but you can use this method: https://github.com/Homebrew/brew/blob/master/docs/Installation.md#untar-anywhere

(Diego Eann) #3

To clarify, I want to use brew to get node which to my knowledge breaks if put in the wrong directory.
After posting I found this Gist containing a ruby script that allows for installation of brew in usr/local without sudo/admin rights
However this did not seem to accept the path to said directory.
My /usr/local is in Hard Disk (8th Grade) below

YOUR_HOME = 'Hard Disk (8th Grade)'

However in the line when you specify the “absolute path” of the install directory (I did chmod +x install.rb) and I run the script in terminal I get this printout

(couldn’t embed both images b/c of new user status, sorry)

Thanks, Diego E

(Mike McQuaid) #4

Don’t use that script, use the link I provided. Alternatively, install NodeJS from their website without Homebrew.

(Michael Meyer) #5

Alternatively, NVM will install with out admin rights on a mac. It is also super useful as far as managing which node version you are programming against. :slight_smile: