Nodejs+express+jade Installation Memo

Source: Internet
Author: User

Installation steps

1, install Nodejs, such as installed in E:\nodejs.

Ensure that there are two environment variables

User environment variable: C:\USERS\ADMINISTRATOR\APPDATA\ROAMING\NPM

System Environment variables: E:\nodejs

2, installation Express, with stable version of 3.5.0, the online information is mostly based on this version, do not specify the version, the default installation of the latest version

Run cmd, npm install-g [email protected]

If it is 4. x version, then install NPM install-g express-generator

3, express installation successfully, you can use the command line to create a test app

Run cmd, express MyApp

4. Copy the dependent module to the root directory of MyApp,
Can be copied manually: Copy the Express directory below C:\Users\Administrator\AppData\Roaming\npm\node_modules to the app root directory
You can also execute commands: cmd, CD e:\nodejs\myapp->npm install

5. Install the template engine jade, install Jade to the currently created app below

Run cmd, cd E:\nodejs\myapp, NPM install Jade

6. Start MyApp, default url:http://localhost:3000

Run cmd, cd e:\nodejs\myqpp, NPM Start or node app.js

7, in the browser access http://localhost:3000, display the Welcome 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.