• 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 893 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 (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

  • Zebronics Pixaplay 16 : Entry Level Movie Projector Review February 2, 2023
  • What is Voice User Interface (VUI) January 31, 2023
  • Proxy Server: Design Pattern in Programming January 30, 2023
  • Cyberpunk Aesthetics: What’s in it Special January 27, 2023
  • How to Do Electrical Layout Plan for Adding Smart Switches January 26, 2023

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, February 3, 2023, https://thecustomizewindows.com/2013/07/node-js-on-os-x-10-8-x-installation-guide/.

Source:The Customize Windows, JiMA.in

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

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT