Wednesday, May 11, 2016

Installing Node.js on OS X El Capitan

I'm new to Node.js. Currently all I know about Node is that it is an asynchronous event driven JavaScript runtime which is designed to build scalable network applications as the official Node site says. All I'm trying to do right now is to setup Node in my Mac and thought of sharing my experience with the community.

To install Node.js, you need to go to the http://nodejs.org where you can download a pre-compiled binary package which is easy to install. I'm going for version 6 with latest features.

You can install the package from the downloaded dmg file. The installation wizard will install Node.js and the npm (Node Package Manager) which is the default package manager for Node.js. Well, this 14MB downloaded file will take nearly 47MB of installation space from your machine. Completion of the installation, check whether the /usr/local/bin is added to your path. Type echo $PATH is the terminal.
As mentioned above, check the path.
Next step is to test the installation as shown below.
You can even check the version of node with the command node -v


This is my first step with Node, along way to go.

No comments: