• 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-GhoshTagged 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
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

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • OpenShift OctoPress Auto install Script

    OpenShift OctoPress Auto install Script is an Advanced Script to Run OctoPress on Free OpenShift PaaS Practically Without Any Knowing Ruby or Git.

  • WordPress & PHP : Different AdSense Units on Mobile Devices

    Here is How To Serve Different AdSense Units on Mobile Devices on WordPress With PHP. WordPress Has Function Which Can Be Used In Free Way.

  • Changing Data With cURL for OpenStack Swift (HP Cloud CDN)

    Changing Data With cURL For Object is Quite Easy in OpenStack Swift. Here Are Examples With HP Cloud CDN To Make it Clear. Official Examples Are Bad.

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 (24.3K 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

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

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

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