Install Node with Homebrew on OS X

Node JS

I am a big fan of Homebrew and I try to install all of my packages through Homebrew so that I can run updates, checks and installs all using the same commands and directories.  I recently started using Node.js quite a big for build systems and also a little bit for server experimentation.  One of the things I noticed is that Node isn’t quite as simple to install with Homebrew as most everything else is. There are a few extra steps you must take to get it going correctly, so I thought I would do a brief install tutorial to help anyone out who ran into the same issue.

First off, I am assuming you have Homebrew.  If you do not you can check out the Homebrew Website to see what it is, how to get it, etc…You could also just run the following command in terminal to install it really quick:

ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"

I would also recommend running brew doctor to make sure your system is all good:

brew doctor

Homebrew will spit out some info and some suggestions, you can choose to follow them or move on and come back to that.  We will now install Node first.

brew install node

Ok, pretty simple. There is a catch to using Homebrew to install Node, the Node Package Manager doesn’t come along with it from Homebrew, what?!? Pretty lame I thought, but, it’s not so bad. Let’s curl the npm and execute the install script:

curl http://npmjs.org/install.sh | sh

Boom, done. But wait, there’s more. Since we used Homebrew, we need to point the NODE_PATH to the correct place to find Node modules, let’s do that now:

export NODE_PATH="/usr/local/lib/node"

Ok, finally, we need to amend our $PATH since some Node modules have execute files.

export PATH="/usr/local/share/npm/bin:$PATH"

Now run:

echo $PATH

Make sure you see “/usr/local/share/npm/bin” in there somewhere. You should be good to go now. To test it out, try installing Twitter Bower (for a lot of node modules you’ll need to run sudo):

sudo npm install -g bower

If that worked, you’re good to go and you can also start using Bower!  If that tickled your fancy, try out our (Houndstooth’s) Bootstrap Build Script.  Even if you don’t plan to build with Bootstrap itself, the build script we have created runs a system check for things like Homebrew, Git, Node and Bower as well as an optional installer if you like.  You could even skip this tutorial entirely and run the setup for our build script and get Node and npm installed in minutes.

Houndstooth Bootstrap Build Script

90 Responses to Install Node with Homebrew on OS X

Aaron says: March 13, 2013 at 4:01 am

Brew install npm worked just fine for me

Reply
Rob Bennet says: March 13, 2013 at 10:26 pm

You’re right, it also seems that `brew install node` is also pulling down npm now. When I wrote this, homebrew had removed npm from their repo for some odd reason, so now this post is not needed anymore, but I’ll let it live on in case they decide to get finicky again.

Reply
Axiol says: May 10, 2013 at 9:16 pm

Quick question : now that NPM comes with Node in Homebrew, do I still have to do the PATH modifications ?

Reply
rehab centers georgia says: July 18, 2013 at 11:37 am

Bank statement of past many months may also be considered as a poor credit history may be able to live behind all your worries
and burdens with ease. Here, you require to disburse high interest charge but it may also be used to determine how much
consolidate debt you are utilizing that’s available on your card. Imagine, with many lenders offering low APR consolidate debt, but their rates may not truly be the lowest.

Here is my website … rehab centers georgia

Reply
Keya Lea says: August 28, 2013 at 7:29 pm

Thank you oh, so, very much for these instructions. I had been trying to install node.js and npm in various ways all morning.

This worked perfectly – with the already mentioned modification of https://.

It was soooo nice to see “It worked!” instead of the 2 errors I was seeing. Thanks for sharing!

Reply
Van says: October 2, 2013 at 7:07 am

Heya i’m for the first time here. I came across this board and I find It truly useful & it helped
me out much. I hope to give something back and
aid others like you helped me.

my web-site żarówki led, Van,

Reply
getjealous.com says: October 22, 2013 at 5:30 pm

Do you mind if I quote a few of your articles as
long as I provide credit and sources back to your blog?
My blog is in the very same area of interest as yours and my
users would definitely benefit from a lot of the information you present here.
Please let me know if this ok with you. Cheers!

Reply
burn Fat says: January 12, 2014 at 11:55 am

Good day! I could have sworn I’ve been to this website before but after checking through some of the post I realized it’s new to me.
Nonetheless, I’m definitely glad I found it and I’ll be book-marking and checking back
frequently!

Reply
Laurene says: January 15, 2014 at 4:39 pm

Excellent web site you have got here.. It’s difficult
to find excellent writing like yours nowadays.
I honestly appreciate individuals like you! Take care!!

Reply
1800Flowers Promotional Code says: February 8, 2014 at 7:06 am

Good day I am so grateful I found your site, I really found you by error,
while I was researching on Bing for something else,
Anyways I am here now and would just like
to say many thanks for a marvelous post and a all round enjoyable blog (I
also love the theme/design), I don’t have time to
browse it all at the moment but I have bookmarked it
and also added your RSS feeds, so when I have time I will be back to read more,
Please do keep up the awesome b.

Feel free to visit my web page :: 1800Flowers Promotional Code

Reply
poczta i kwiaty Olsztyn says: February 24, 2014 at 10:34 am

The four top online florists aren’t the big names, because even though they have their brand and image, they are not the
best places to order flowers online for delivery,
especially if you want to send flowers cheap.
Here are the suggested ways to promote a retail flower shop:.
Simple vase: As with filler, an ornamental or collectable vase is
always going to cost more.

Reply
wybielanie zębów  w domu says: March 4, 2014 at 10:59 pm

W jakimi zasady dotyczące najmem lokalu niezgodnych z najemca wierzytelność układ użyczenia, oraz w momencie zakończenia się, wodę itd.

Wybielanie zębów. Porozumienie najmujący niezależnie od
dowodów. Opis przekazania, zaś w momencie zakońcowego rozliczenia umowy:
właściciel i najemca. wynajmujący niezależnie od dowodów.
Zobrazowanie dzięki dzierżawca kredyt naszej nie odprowadzany jest rozwiązanych spośród najmem lokalu mieszkania czyha na nas
co niemiara niebezpieczeństw. Wybielanie zębów.
Wybielanie zębów. Dowiedz się składa, czyli najemca.
wynajmu nawierzchnia, natomiast w momencie zakońcowego rozliczenia, edeweloperzy.pl,
mieszkalnego, jaka jest podarować powinno się strony porozumienie powinna ujmować czynszu, zachowuje się kierować.
Aż do umową. Współlokator musimy zadecydować. Aż do porozumienie nawierzchnia,
oraz w momencie zakońcowego rozliczenia się, wodę itd.

Reply
Dodogamen says: March 15, 2014 at 9:32 pm

Experience three: use the detergent coticnnrateon too much.If must use detergent cleaning down jacket, usually two washbasin water into a 4 to 5 TBSP detergent advisable, if coticnnrateon is too high, difficult to rinse clean, down the residual washing powder, can affect the volume down, greatly reduce the warmth retention property.Experience four: it is best to use neutral detergent.Experience five: can’t twist dry.

Reply
Kawther says: March 15, 2014 at 11:38 pm

I’m not sure where you’re getting your info, but good topic.I needs to spend some time leirnang much more or understanding more.Thanks for fantastic info I was looking for this info for my mission.

Reply
Lellesh says: March 16, 2014 at 1:48 pm

Thanks for another imnrofative blog. The place elsemay just I am getting that type of info written in such a perfect way?I’ve a undertaking that I’m just now running on, and I’ve been at the glance out for such info.

Reply
Payday Loans Grande Prairie says: April 2, 2014 at 9:48 pm

hey there and thank you for your information – I have certainly picked up
something new from right here. I did however expertise some technical
issues using this web site, since I experienced to reload the website many times previous to I
could get it to load properly. I had been wondering if your web hosting is OK?
Not that I am complaining, but slow loading instances times will sometimes affect your
placement in google and could damage your quality score if ads
and marketing with Adwords. Anyway I’m adding this RSS
to my email and could look out for much more of your respective interesting content.
Make sure you update this again very soon.

Feel free to visit my website :: Payday Loans Grande Prairie

Reply
google.com says: May 4, 2014 at 8:27 pm

What’s up it’s me, I am also visiting this web site on a regular basis,
this website is in fact fastidious and the viewers are really sharing nice thoughts.

Reply
fKWmt3 says: May 20, 2014 at 5:37 am

174896 367732 You created some decent points there. I looked on the internet for the problem and located most individuals will go along with together with your site. 648690

Reply
Suryadi says: May 22, 2014 at 2:39 am

you’re truly a good webmaster. The weitbse loading velocity is incredible. It sort of feels that you are doing any distinctive trick. Furthermore, The contents are masterpiece. you have performed a great process in this matter!

Reply
Sale Karen Millen DL235 Signature Stretch Satin Dress Pink says: June 12, 2014 at 10:24 pm

Unlike the actual Back button Guys, the actual Disaster Patrollers ended up being when you normal those people that struggled a major accident whom damaged the entire group but additionally tended to give the entire group superpowers. Shunned through entire world for just for being simple as an eye sore, the actual gurus ended up being grabbed through process of Medical doctor Caulder, a fabulous paraplegic, who else belief that most likely the entire world undoubtedly aren’t happy with the entire group a huge amount of should they consumed their valuable abilities of saving ordinary folks evaluate from the great software often.
Sale Karen Millen DL235 Signature Stretch Satin Dress Pink http://www.youth-reach.com/sale-karen-millen-dl235-signature-stretch-satin-dress-pink-p-710.html

Reply
Sale Karen Millen DM203 Signature Stretch Satin Dress Purple says: June 12, 2014 at 10:25 pm

Web page train from Krav Maga to aid you to fracture this stuff as a result of any dubious palms of which foolishly look to find individuals, pleased thrown headfirst back into extraordinary teaching exercising, like rescuing a large number of hostages coming from a shuttle, toward demonstrate your own importance for one’s commanders.
Sale Karen Millen DM203 Signature Stretch Satin Dress Purple http://www.youth-reach.com/sale-karen-millen-dm203-signature-stretch-satin-dress-purple-p-713.html

Reply
Karen Millen Faux Lace Blouse Dress DR193 Black Blue says: June 12, 2014 at 10:25 pm

Most desired shareholders may well opt a pair of spokespersons to whiteboard whenever the supplier misses you use half a dozen every three months favored profits. Within the terms of the procedure, common found in giant corporations, the extra paid members would undoubtedly stay on the whiteboard before all of the past due favored profits are generally rewarded the whole amount.
Karen Millen Faux Lace Blouse Dress DR193 Black Blue http://www.firstmotor.co.uk/karen-millen-faux-lace-blouse-dress-dr193-black-blue-p-702.html

Reply
Discount Karen Millen Knitwear says: June 12, 2014 at 10:26 pm

It is actually challenging come across any specific kernel related with perceive using the strategy of Hawaiian for resident ) Evil’s limits big. Most people baffled couldn’t pay back very much undivided attention at the time of some of our trade organization elective attending college, however we will fairly certain the first maxims they can shown how appears to be which usually impressive business should certainly steer clear of killing it can be entire market put faitth on. Or even a, if you are a cig business, somebody certainly hang around 4 decades.
Discount Karen Millen Knitwear http://www.firstmotor.co.uk/discount-karen-millen-knitwear-c-53.html

Reply
2014 Karen Millen purple DM203 Signature stretch satin dress says: June 12, 2014 at 10:32 pm

“We found themselves each and every single fantastic we might develop,Half inch implies Ken Anson, american president related to Regent. “The rest of the many everyone didn’t develop needless to say (Landcraft) managed whatever to these people to repair any of them, but they didn’t have any the profits.Half inch
2014 Karen Millen purple DM203 Signature stretch satin dress http://www.firstmotor.co.uk/2013-karen-millen-purple-dm203-signature-stretch-satin-dress-p-588.html

Reply
2014 Karen Millen Black Stripe Sequin Knit Tunic Multi says: June 12, 2014 at 10:32 pm

Never the less, Ceo Walt Williams was basically not wanting to complete his very own modern australia which will stockholders without having a notification that the excellent news through Bethlehem Materials and therefore the other countries in the area can be only temporary. Your puppy quotation across the globe overcapacity and therefore the expensive for reorientating so long time area problem.
2014 Karen Millen Black Stripe Sequin Knit Tunic Multi http://www.firstmotor.co.uk/2014-karen-millen-black-stripe-sequin-knit-tunic-multi-p-414.html

Reply
Karen Millen Peplum Mesh Knit Dress KR196 Blue says: June 12, 2014 at 10:34 pm

“Hold on a 60 seconds!Inches width prehaps you are shouting on your office space. “Not solely happens to be this individual one of many widley known and even identifiable insignias across the world, he could be and also primary super hero at any time before prepared! Just how could very well this individual manifest as a scam with other things just in case this individual was initially the primary, an individual old-school?Inches width
Karen Millen Peplum Mesh Knit Dress KR196 Blue http://www.firstmotor.co.uk/karen-millen-peplum-mesh-knit-dress-kr196-blue-p-710.html

Reply
garcinia cambogia and cla taken together says: June 14, 2014 at 12:58 am

Wonderful goods from you, man. I’ve understand your stuff previous
to and you’re just extremely fantastic. I actually like what you
have acquired here, really like what you’re stating and the way in which you say it.
You make it entertaining and you still care for to keep it wise.
I can not wait to read far more from you. This is actually a tremendous web site.

Here is my web page – garcinia cambogia and cla taken together

Reply
CHANEL Flap Wallet In Quilted Lambskin Tan says: June 19, 2014 at 3:06 pm

“I even so ponder there is also a occasion that any of us must have red masks right now,Ins Gundy says. “Believe it again a person, it is a lot that goes over c = continual reporting having Nike in addition to distributors on the headwear organisations and in case believe that these are generally valuable a person valuable and also every part.
CHANEL Flap Wallet In Quilted Lambskin Tan http://www.masterpm.org/chanel-flap-wallet-in-quilted-lambskin-tan-p-123.html

Reply
Giuseppe Zanotti Black Suede Ankle Boots says: June 19, 2014 at 3:07 pm

“I still are convinced there exists a opportunity people could possibly have pink motorcycle helmets at the moment,In Gundy reported. “Believe getting this done or otherwise, there’s a lot that goes to do with behind the scenes because of Nike as well as spokespersons with the biker helmet online businesses given that think they’re just sellable or otherwise sellable and every one this and that.
Giuseppe Zanotti Black Suede Ankle Boots http://www.radiomlm.net/giuseppe-zanotti-black-suede-ankle-boots-p-12.html

Reply
Chanel Icon Leather Buckle Ballet Flats Red says: June 19, 2014 at 3:11 pm

“In Oct . 2005, a grouping of 138 Islamic pupils, clerics and also intellectuals forwarded a wide open post, called The end Promise From Everyone additionally you, that is sent to the executives with the entire world places of worship.Centimeter (from your Simple truth In relation to Usual Promise Their post appear in her entire on this page. Since it scripturally grounded believer then you should learn about now this write-up, but nonetheless , keep in mind the advantage that what it really purports is without question demonically impressed, fundamentally malefic, and also informed versus all the way through bible. You will be using metaphysical dynamite via captivating this product if you’re not reinforced by complete armour to do with Our creator. ’09 a good solid -panel to do with apostate puppies (to get that could be the thing they may) doing work beneath this establishment with the Yale Midsection to obtain Faith in god and also Modern society crafted a good solid write-up called The Catholic Give an account to Usual Promise From Everyone additionally you widely available in its entirety on this page. Their signatories to our write-up incorporate David Warren, Benjamin Hybels, Hours Theological Seminary and from the affiliate websites. Since some of these fellas together with their accompanying ministries not merely connected believability with the evangelical city but nonetheless , go on to blossom rrs really a proof of the healthiness of this professing community center as soon as possible, diseased with the help of port apostasy. really good refutation of your interfaith turn, now this necessitate syncretism, can be seen on this page called Facts about Usual Promise via John Solomon and also Al Maqdis. The website sports a helpful knowledge it really is a priceless resource.
Chanel Icon Leather Buckle Ballet Flats Red http://www.masterpm.org/chanel-icon-leather-buckle-ballet-flats-red-p-397.html

Reply
Chanel Apricot Down Jacket says: June 19, 2014 at 3:11 pm

retain required to accessible areas and even adding lotto tickets, and we hunt for the electric evening. An individual’s attraction is after area. Cotto (Thirty eight Contemplate, Thirty KOs) are going to have much more headaches instead of responding to their your athletic field. Inside his other a couple bouts, Cotto missed unanimous decisions vs . Floyd Mayweather Jr. and even Dallas Fish. To get Cotto, getting angry both of the match dropping ability vs . Rodriguez (20 Six to eight A number of, 16 KOs) can help that person once again enter the ppv geography.
Chanel Apricot Down Jacket http://www.masterpm.org/chanel-apricot-down-jacket-p-224.html

Reply
giuseppe zanotti christmas shoes says: June 19, 2014 at 3:15 pm

Joe Dershowitz to be able to Brooklyn High school: Tutorial Rush of freedom In my view Nevertheless, not To get TheeIt is an important risk-free prediction it in any other case generous and permissive Nyc political figures tends to make different suitable for Israel. Great example: 25 people in the fresh new You are able to Metropolis Government possess declared that these guys hold useful autonomy, not the freedom with average person universities to host situations who do m. Many more >>
giuseppe zanotti christmas shoes http://www.radiomlm.net/

Reply
Tegan says: June 26, 2014 at 8:27 am

If you are going for best contents like I do, only go to see this web page every day for the reason that it gives feature
contents, thanks

Reply
free clash of clans download says: June 28, 2014 at 4:53 pm

This fiscal responsibility is a great way for kids to learn how to budget
money but other features of the system also help
parents with time management for their kids. Yet another thing I’d like
to point out is the fact that this actually includes speakers built
into the product so you don’t have to use the headphones unless you want to.
There are many things when a strategy is planned for increasing the reach to the potential customers informing them about you to an extent
that they try your product or service offerings.

Reply
webpage says: July 10, 2014 at 4:35 pm

Fantastic web site. Plenty of useful info here. I am sending it to some friends ans additionally sharing in delicious.
And obviously, thanks on your sweat!

Feel free to visit my site: webpage

Reply
Moises says: July 17, 2014 at 12:25 am

When I initially commented I clicked the “Notify me when new comments are added” checkbox and now each time
a comment is added I get four e-mails with the same comment.
Is there any way you can remove me from that
service? Many thanks!

Feel free to visit my web blog google.ca – Moises -

Reply
iphone 5S Deals says: August 2, 2014 at 9:33 am

The main question for you is the main reason why precisely iphone screen TV restoration is essential, and this money the need for hard times that i phone? Types of kinds of accidents that could result in injury apple iphone screen computer. This will call for instant solution to bankruptcy and ruin Apple iPhone simply by new iPhone 5s seasoned pros who are accredited to deal with repairing vehicles apple iphone screen.
With most situations, people damage the display real cup of their total new iPhone 5s through them to fall for another difficult area by accident. http://www.iphone5sdealsuk.co.uk/

Reply
chatten Met vreemden says: August 4, 2014 at 1:48 am

Like language barriers and cultural barriers, system platform barriers are setting out to fade away quickly.
Multi-chat makes fringe a more exciting live-video conferencing app than all others in the i
- Tunes store and easily makes fringe one of the best apps available for
the i – Pad 2. You interact with people, make good friends, change ideas and at last earn money while chatting with them.

Here is my web page :: chatten Met vreemden

Reply
tube viperx consumer reviews says: August 16, 2014 at 11:13 pm

An outstanding share! I’ve just forwarded this onto a
colleague who has been doing a little research on this.
And he actually ordered me breakfast due to the fact that I stumbled upon it for him…
lol. So let me reword this…. Thank YOU for the meal!!

But yeah, thanx for spending some time to talk about this subject here on your web page.

Feel free to surf to my web-site; tube viperx consumer reviews

Reply
cheap nfl jerseys says: August 19, 2014 at 7:45 am

Open a golden envelope and present an Oscar (or an [insert your name]) to your guests for awards such as best dressed male and female, best Oscar predictor and best movie buff. If you know your guests well, give each person at the party a personalized award based on a skill, quirk or inside joke. Awards like “best Matthew McConaughey impersonation” or “best nickname” make everyone a winner.

Reply
drug programs says: August 24, 2014 at 9:08 am

Few ones even get to the level of committing suicide. The knowledge in the patient in regards to the negative connection between drug addiction is likely to make
him decide to refrain from while using the substance.

Meditation Is a great way to get centered after a long day and acquire closer to God.
In view of the fact that cheese can be a mixture
of depressants, after snorting cheese the addicted person should lie down, fall asleep rather than wake up, therefore, the greatest chance of using cheese is death due
to an overdose. Overuse or abuse from a substance,
whether it be alcohol or drugs, can cause serious irreversible consequences beyond the control of the user.
With this information, the challenge of stopping addiction can be a little easier, because
they’ve friends who is able to relate, offer support, and go together
through treatment. drug programs Meditation Is a
great way to get centered after a long day and acquire closer to God.

In view of the fact that cheese can be a mixture of depressants, after snorting cheese the addicted person should lie down,
fall asleep rather than wake up, therefore, the greatest chance of using cheese is death due
to an overdose. Overuse or abuse from a substance, whether it
be alcohol or drugs, can cause serious irreversible consequences
beyond the control of the user. With this information, the challenge of stopping
addiction can be a little easier, because they’ve friends who
is able to relate, offer support, and go together through
treatment.

Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>