Install Node. js_node.js of the latest version on Ubuntu

Source: Internet
Author: User
Node. js is a software platform that is usually used to build large-scale server applications. Node. js uses JavaScript as its scripting language. Due to its non-blocking IO Design and single-thread event loop mechanism, it can deliver extremely high performance. Node. js contains the Google V8 JavaScript Engine. libuv library and core library are almost all written in JavaScript. The libuv Library provides asynchronous event I/O abstraction and a cross-platform Node. js mechanism.

Node. js was initially created by Ryan Dahl and is currently being evolved and maintained by Isaac Schlueter.

There are many articles on the Internet that compile and install Node. js from the source code. I strongly recommend against this method. In most cases, the package maintainer has a clear understanding of the software structure, and developers do not need to compile the latest source code from scratch.

The following method applies to the latest versions of Ubuntu, Ubuntu 12.04 LTS, Ubuntu 12.10, and Ubuntu 13.04. It can help developers install Node. js on Ubuntu without compiling and installing it from scratch. You can run the following command on a VM instance:

# Apt-get update # apt-get install-y python-software-properties-common # add-apt-repository ppa: chris-lea/node. js # apt-get update # apt-get install nodejs

Once the command is executed, the latest version of Node. js is installed, so you need to worry about it. Once the new version of Node. js is released, you can upgrade it directly from the package manager without re-Compiling and installing it from scratch.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.