Install and configure the Node. js development environment under ru12.04

Source: Internet
Author: User
Tags install node
Environment: Ubuntu12.0464-bit. In order not to be affected by permission issues, I chose to directly use the root account to download Node. js & gt; wgethttp: // response;

Environment: Ubuntu 12.04 64-bit

In order not to be affected by permission issues, I chose to use the root account directly.

Download Node. js

> Wget http://nodejs.org/dist/v0.10.26/node-v0.10.24.tar.gz

So you can find the node-v0.10.24.tar.gz file in your current directory.

Decompress:

> Tar-zxvf node-v0.10.24.tar.gz

Enter the decompressed directory:

> Cd node-v0.10.24
>./Configure
> Make
> Make install

If no error occurs, you can view the version in the command line.

> Node -- version

Show v0.10.26

Now, after nodeJS is installed, you can develop it.

Reading:

Node. Js getting started [PDF + related Code] http://www.linuxidc.com/Linux/2013-06/85462.htm

Node. js getting started development guide Chinese edition http://www.linuxidc.com/Linux/2012-11/73363.htm

Node. js installation and configuration http://www.linuxidc.com/Linux/2013-05/84836.htm

Ubuntu build and install Node. js http://www.linuxidc.com/Linux/2013-10/91321.htm

Node. js details: Click here
Node. js: Click here

Of course, as a programmer, what we cannot tolerate is that all the details require us to write code, instead of using the existing functional code. In order to quickly develop a website, we must select some development tools. Here I recommend Express

Okay, let's install it.

> Npm install-g express

(Npm has built-in-g after version 0.6 to indicate that it is set as a global variable)

> Npm install-g express-generator

If no error message is displayed, you can view its version.

> Express-V

So how can I use express to quickly build a website?

First create a folder

> Mkdir app

> Cd app

> Npm install ejs

> Npm install jade

> Express-e ejs website

For more details, refer to the highlights on the next page.: Http://www.linuxidc.com/Linux/2014-05/101418p2.htm

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.