Install and configure the Node. js development environment in javasru 12.04

Source: Internet
Author: User
Tags install node

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.

Getting started with Node. Js [PDF + related Code]

Node. js getting started Development Guide

Install and configure Node. js

Compile and install Node. js in Ubuntu

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, please continue to read the highlights on the next page:

  • 1
  • 2
  • Next Page

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.