Tuesday 23 April 2013

Installing latest nodejs on Linux


Introduction:

According to its site, 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.

Basically, it is a server side software system that can be used to design and write scalable Internet applications. It can be used to create a web server on its own, thus removing the need of using a web server software like Apache. Due to the asynchronous I/O mode, there is minimum overhead(computation time).

I have a machine running Ubuntu 12.10, so I normally use my package manager (apt-get) to install applications which are present in the repository. However, even though I did apt-get multiple times, the installed version seemed to an outdated v0.6.* where-as, the latest version as per their site was v0.10.4 (Huhhh!!!)

Detailed Steps:

Below are the steps which I had to perform, to get the latest nodejs up and running:

Step 1: We will start off, by installing the "software-properties-common" package for the "apt-get" repository. This can be done using the command:
"sudo apt-get install software-properties-common"

Step 2: Chris Lea's repository includes the latest npm and nodejs-dev that is required to install nodejs v0.10.4
Below command helps you add thoseto your local repository list:
"sudo add-apt-repository ppa:chris-lea/node.js"

Step 3: Update the local package index with the changes made in the repository using the command:
"sudo apt-get update"

Step 4: Now, install nodejs as you normally would, using apt-get command as shown below:
"sudo apt-get install nodejs"

You can run #nodejs --version on terminal to see the version of the currently installed nodejs.




Above screenshot shows that we have updated nodejs to the latest available version: v0.10.4

References:



30 comments:

  1. this is a really informative site. Keep up the good work
    cheque printer | inventory management software dubai

    ReplyDelete
  2. The installing one of the latest versions requires the appropriate settings. The program custom essay papers writing service can request some new parameters according to the selected command.

    ReplyDelete
  3. Yes, having such detailed information is written on the step, I can easily use this data for work.

    ReplyDelete
  4. This software system is very convenient because it is incredibly easy to work with and you can not worry about the fact that your work is subject to viruses.

    ReplyDelete
  5. Definitely you have an interesting and useful site. Moreover it looks nice and it is comfortable to use. So keep writing here))

    ReplyDelete
  6. When I'm installing latest Node JS on my Linux, I encountered some difficulties. Namely with the step 2. Your article was very useful for me ;)

    ReplyDelete
  7. This comment has been removed by the author.

    ReplyDelete
  8. It's a great introduction for new users. I also like helping people. My hobby is writing resume length questions and answers. usually, I faced with disappointed people and I help them to again believe in their strengths.

    ReplyDelete
  9. This comment has been removed by the author.

    ReplyDelete
  10. I’m very glad to have such an informative forum, its help I could easily find out different news and facts. I'm a student and of course, I want to have money and I decided to work as writer environmental pollution essays on this web!. Once you become a student, you see that some essay topics are extremely popular among teachers. Environmental pollution is one of such topics. As you are moving towards graduation, you will have to submit at least one essay about environmental pollution.

    ReplyDelete
  11. Writing an original 500 word essay is one of the numerous assignments given to students. You should keep in mind that it is necessary to write a clear essay providing readers with useful information about the discussed issue.A perfect 500 word essay sample wiill help you to deal with this task.

    ReplyDelete
  12. Thanks for such helpful article, I am interested in this topic very much. By the way, here is interesting information about video games and cognitive development. Hope, you wil find it effective.

    ReplyDelete
  13. Download Updated versions of all types of Apks like App store APKs, Messaging APKs, Popular APKs, Software APKs, and Streaming APKs from Apkmist.Apkmist Download
    WhatsApp Plus APK Download
    YOWhatsApp APK Download
    WhatsApp Business APK Download
    GBWhatsApp APK Download
    OGWhatsApp APK Download
    FMWhatsApp APK Download

    ReplyDelete
  14. This comment has been removed by the author.

    ReplyDelete
  15. I've x32 operating system, and I am willing to learn about this. I'll be grateful if you provide me the downloading link for x32 operating system. Buy Dissertation Online

    ReplyDelete
  16. This comment has been removed by the author.

    ReplyDelete
  17. Hello everyone! This is Alice! I am someone who loves sharing and reading positive ideas and thoughts. Working in the IT sector makes my life relatively mundane and restricts the social interaction with many people. Here, I get the opportunity to interact with other people and understand their perspectives on different things.
    visit my site :- mcafee.com/activate

    ReplyDelete
  18. The more Free subscribers you have, the more you can consistently achieve high view counts on your videos. SignUp at ytbpals.com for free YouTube subscribers and learn about f95zone

    ReplyDelete
  19. Thats great post !! I like ur every post they always give me some new knowledge.
    turbo vpn
    vpn master
    cartoon hd
    zapya
    xender

    ReplyDelete
  20. Its very informative blog and useful article thank you for sharing with us , keep posting learn more about mulesoft online training in India | mule 4 online training

    ReplyDelete
  21. Excellent and informative post. Continue to post. Thank you for revealing.Oracle Fusion SCM Online Training

    ReplyDelete