• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here: Home » Node.js on OS X 10.8.x Installation Guide

By Abhishek Ghosh July 27, 2013 12:22 am Updated on October 17, 2014

Node.js on OS X 10.8.x Installation Guide

Advertisement

Node.js on OS X 10.8.x Installation Guide shows you how to install node.js, package manager and run your node.js application on localhost that is on your Mac. The first thing we will tell you is that, there are many ways to perform this same thing. We have used our way as it is convenient to our few thousands of users per day. We think they are using (or rather has been synced) in our way. It is not that, you must have to install iTerm2, you can use Terminal App without any problem. As basically we are old Mac users, probably we feel a kind of comfort with the name iTerm.

 

Node.js on OS X 10.8.x Installation Guide : Basic Setup, Older Tutorials for Preparation and Kind of Alternatives

 

First come to alternatives. The easiest way to use alternatively is to use a Virtual Appliance – it is the same way we created WordPress Virtual Appliance. This will ensure not to mess your OS X by any means, if you are very keen to keep the port clean. But, we are not going to that way – it is Node.js on OS X 10.8.x Installation Guide. Still, here is ready made version of node.js virtual appliance :

 

Vim
1
http://www.turnkeylinux.org/nodejs

 

What so ever, we are using iTerm2 plus HomeBrew for this Node.js on OS X 10.8.x Installation Guide. You might not like iTerm2, you might not like HomeBrew, then you have to use GNU make in Terminal or anything like MacPorts, there are actually many ways.

Advertisement

---

These three guides are important if you are quite new to these things, these are essential steps for any kind of localhost setup, git local repo etcetera :

 

  1. Fixing UNIX Commands After OSX 10.8 Updates (Fixing is a bit misnomer)
  2. Customize iTerm2 with Color Schemes, Syntax Highlighting (Optional)
  3. Syntax Highlighting in Vim inside iTerm2 (Optional, ahh…I forgot to update that text snippet there, there are more functions than actually written)

 

Node.js on OS X 10.8.x Installation Guide

 

So you have a ready setup. Xcode is also installed. Only few commands will work to create the setup. Run brew update command if you have installed HomeBrew long ago.

Technically, the command :

 

Vim
1
brew install node

 

Should work. But it is depreciated. So, we can clone this official git :

 

Vim
1
https://github.com/creationix/nvm

 

There is nicely written guide for Installation ! Here is the manual method in short :

 

Vim
1
git clone git://github.com/creationix/nvm.git ~/.nvm

Vim
1
echo ". ~/.nvm/nvm.sh" >> ~/.bashrc

Vim
1
nvm install -s v0.10.4 (Please check the version number and make it to current one)

Vim
1
nvm alias default v0.10.4

Vim
1
curl http://npmjs.org/install.sh | clean=no sh

 

A noSQL database is required. You can use MongoDB.It is optional. Installing is easy :

 

Vim
1
brew install mongodb

 

But you you have to create a directory with mkdir command. Like db in the location /usr/local/db. Read their official docs.

Practically, its ready, you can check with the command :

 

Vim
1
node -v

 

Now, if I want to create an app named app.js then the example app will be :

So, run the command :

Vim
1
vi app.js

and copy paste that above bigger snippet. Save it. Start your app :

node app.js

As I have added at 3000, you should point your browser to :

http://localhost:3000/

Node.js on OS X 10.8.x Installation Guide

You will see It Works! message like Apache2 ‘s default message. It Works really sound better than Hello World.

Abhishek-Ghosh Tagged With how to install node js on mac os x 10 8 , node mac setup nom , node js osx , Node Install OSX , node application OS X , MAc OS X install node , install node on osx , how to update node js local macosx , how to launch node js application in Mac OSx , run node on osx

This Article Has Been Shared 267 Times!

Facebook Twitter Pinterest
Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Node.js on OS X 10.8.x Installation Guide

  • Install WordPress on Mac OS X With Command Line LAMP Configuration

    Install WordPress on Mac OS X Without installing MAMP or AMPPS from Command Line just like we do for Ubuntu or any kind of Linux. Mac has PHP and virtual hosts.

  • List of Indispensable OS X Commands

    List of Indispensable OS X Commands lists some important commands for the newbies to Apple Mac OS X 10.8 Lion. This is a small list of commands normally used.

  • grep command : Details, Examples and Usages of Grep Command

    grep command for a program of UNIX and Unix like Operating System. It is used to search and filter. Historically, the name evolved from the command g / re / p.

  • Installing Apache2 With PHP5 and MySQL Easy Guide

    Installing Apache2 With PHP5 and MySQL on Rackspace Cloud Server with Ubuntu Linux is written in easy language and as step by step guide for the newbies.

  • WordPress Command Line Tool : Install and Run Commands

    WordPress Command Line Tool can be installed on any UNIX or UNIX Like OS. The usage ranges from installing a plugin, Publishing Post to anything you want.

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (22.1K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Types of Blackjack Variants: Discover the Different Versions of the Game May 23, 2022
  • How Cloud, Robotics And Sensor Technologies Are Changing The Business Landscape May 23, 2022
  • Modernizing Your Business With a Hybrid Cloud Strategy May 22, 2022
  • Big Data in Sports May 20, 2022
  • FaaS Versus PaaS Deployment: What You Should Know May 18, 2022

About This Article

Cite this article as: Abhishek Ghosh, "Node.js on OS X 10.8.x Installation Guide," in The Customize Windows, July 27, 2013, May 24, 2022, https://thecustomizewindows.com/2013/07/node-js-on-os-x-10-8-x-installation-guide/.

Source:The Customize Windows, JiMA.in

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Privacy Policy.

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

Copyright © 2022 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy