MacPorts vs. Homebrew

1,449 views
Skip to first unread message

Jerome Covington

unread,
May 19, 2013, 7:02:41 PM5/19/13
to nod...@googlegroups.com
Hi guys, I've been doing it all on Ubuntu so far but I'm going to consolidate down to doing all my work on a Mac for a while here. Apt-get made a lot of sense to me and I'm wondering if I should learn ports or homebrew first just as far as what the NodeJS community might be using more often.

--
Regards,
Jerome

Nathan Rajlich

unread,
May 19, 2013, 7:04:46 PM5/19/13
to nodejs
I use brew


--
--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com
To unsubscribe from this group, send email to
nodejs+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
 
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

mscdex

unread,
May 19, 2013, 7:40:17 PM5/19/13
to nodejs
On May 19, 7:02 pm, Jerome Covington <jeromecoving...@gmail.com>
wrote:
> Hi guys, I've been doing it all on Ubuntu so far but I'm going to
> consolidate down to doing all my work on a Mac for a while here. Apt-get
> made a lot of sense to me and I'm wondering if I should learn ports or
> homebrew first just as far as what the NodeJS community might be using more
> often.

I compile from source on all non-Windows platforms.

Ryan Schmidt

unread,
May 19, 2013, 8:13:39 PM5/19/13
to nod...@googlegroups.com

On May 19, 2013, at 18:02, Jerome Covington wrote:

> Hi guys, I've been doing it all on Ubuntu so far but I'm going to consolidate down to doing all my work on a Mac for a while here. Apt-get made a lot of sense to me and I'm wondering if I should learn ports or homebrew first just as far as what the NodeJS community might be using more often.

I've found most Mac users here seem to use Homebrew. I have not tried Homebrew myself, but I have used MacPorts for 8 years, and I am a manager of the MacPorts project, so of course I would invite you to give MacPorts a try. Our nodejs and npm ports are kept up to date, and if you want the latest development version instead of the latest stable, you can use the nodejs-devel port instead. MacPorts has been around a long time -- almost as long as OS X itself -- which I feel gives it a kind of maturity that Homebrew may not yet have achieved. You mileage may of course vary! If you try MacPorts and experience trouble, we're happy to help you on the macports-users mailing list or in #MacPorts on Freenode IRC.

Wil Moore

unread,
May 20, 2013, 12:42:47 AM5/20/13
to nod...@googlegroups.com

Hi guys, I've been doing it all on Ubuntu so far but I'm going to consolidate down to doing all my work on a Mac for a while here. Apt-get made a lot of sense to me and I'm wondering if I should learn ports or homebrew first just as far as what the NodeJS community might be using more often.

Jerome,

If you want to have a little more control, either compile from source or grab a binary:

I tend to put them under a directory structure like: $HOME/.local/nodejs/0.10.7

To make that version active in your shell, you add the path to that version's "bin" directory to your $PATH, and add "share/man" to $MANPATH.

To switch to a new version (if you ever need to do that -- most people do not, but some OCD people like me do), you can update the $PATH and $MANPATH variables.

To automate that process, you can check out any of the available version switchers for node.

Wil Moore

unread,
May 20, 2013, 12:47:29 AM5/20/13
to nod...@googlegroups.com
If you want to have a little more control, either compile from source or grab a binary:

BTW, what I meant by "more control" is that some package managers like "brew" forces you to do really odd things with permissions (i.e. sudo, etc.) and I don't like that. If you are cool with that sort of thing, try Homebrew...it's easy; however, if you want more control, compile or get the binary tarball...it isn't hard since node is tiny. Also, it's super easy to delete a version...just delete the directory and drop the directory from ${PATH,MANPATH}.


Luke Arduini

unread,
May 20, 2013, 12:57:22 AM5/20/13
to nod...@googlegroups.com
Homebrew & Macports are both ok. I use homebrew for some things, but it's ruby.

For managing node, however, I don't think it gets any better than nave. Search for it on GitHub, it's an indispensable tool.

Hack Sparrow

unread,
May 20, 2013, 9:52:06 AM5/20/13
to nod...@googlegroups.com
Homebrew!

mlegenhausen

unread,
May 21, 2013, 3:13:59 AM5/21/13
to nod...@googlegroups.com
For nodejs especially when you want to develop don't use both of them use a version manager like nvm (https://github.com/creationix/nvm) which allows you to install multiple node versions and easily switch between them.

David Worms

unread,
May 22, 2013, 5:12:04 AM5/22/13
to nod...@googlegroups.com

I use both of them toguether. I usually install low level libraries with Macports. Despite not being recommanded, I never had any problems. My preference go to Macports, over the years I always had a very smooth experience. I only regret the disappearance of Porticus. I can't say so with Homebrew. Many times, I had to get my hands dirty with it or couldn't find what I was looking for.

d.

Le 5/20/13 3:52 PM, Hack Sparrow a écrit :
Reply all
Reply to author
Forward
0 new messages