Hi, my name is Lee.
I'm a writer,
a developer and a technical trainer.
I create fixes and I fix headaches...
Welcome to my tech blog.

Installing Node and NPM on MAC OSX

Node.js is a platform built on Chrome’s JavaScript runtime for easily building fast, scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.

This assumes that Git is already installed and available on the command-line. Since the technology Node.js is quiet new, check at http://nodejs.org/ what the latest stable version of node.js is. For this example the latest version is v0.6.14. Open your terminal and start typing the following commands:

$ git clone git://github.com/joyent/node.git
$ cd node
$ git checkout v0.6.14
$ ./configure
$ make
$ sudo make install

Now Node.js is installed, you should also download the Node Package Manager. It’s no longer necessary to install npm separately, but if you want you can install this via the command-line as well. Use the following command:

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

As an extra let’s also install MongoDB, is a large scalable high performance NoSQL database.

$ npm install mongojs

Related Posts

Find more articles like this one.
Category: Environment Node JS


  1. Manpreet says:
    August 14, 2014 at 12:48 am

    I am following the steps you mentioned but get following error: Error:

    Attempt to unlock ., which hasn’t been locked.

    Looked few places but not able to find workable solution.


Post a Comment

Your email is never published nor shared.
Required fields are marked *

Recent Posts

Recent Comments


Quick Links