Simple method for installing nodejs in Ubuntu

Source: Internet
Author: User

Simple

The code is as follows: Copy code

Sudo apt-get update
Sudo apt-get install python-software-properties python g ++ make
Sudo add-apt-repository ppa: chris-lea/node. js
Sudo apt-get update
Sudo apt-get install nodejs


Quantal (12.10) users need to use the add-apt-repository command to install the software-properties-common package. The command is as follows.

The code is as follows: Copy code

Sudo apt-get install software-properties-common

If you want to compile Node in C # mode, run the following command to install the nodejs-dev module.

The code is as follows: Copy code

Sudo apt-get install nodejs-dev

Advantages of this method: simple.
Disadvantages of this method: it is too slow (based on the network speed ).

Introduction to node. js

Node. js is a set of JavaScript toolkit used to write high-performance network servers. A series of changes started from this. Specifically, Node. js assumes that Linux or Mac OS X is running in the POSIX environment. In Windows, MinGW must be installed to obtain a POSIX-like environment. In Node, Http is the first priority. Node is optimized to create an http server, so most examples and libraries on the Internet are concentrated on the web (http Framework, template library, etc ).

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.