Create Ejs project in Nodejs Express, solve express under the default create Jade, cannot create ejs problem

Source: Internet
Author: User

Recently, looking at the node. JS Development Guide, I saw a problem with preparing to create a Ejs project when using Nodejs for Web development.

The order of the book is:

?
1 express -t ejs microblog

But after execution, the Jade project is still being created.

Originally, the Create Ejs command in express3.x,express4.x was updated to:

// namely ejs,-j (i.e. Jade)

Of course, the most straightforward, you can also modify the definition in the Package.json to implement the installation Ejs.

PS: Establish Engineering process

1. The express framework must be installed: Express installation commands are also updated and need to be installed Express-generator

$ NPM install-g Express  / / Global Install // This command is not forgotten, otherwise it will prompt "express command cannot find"

2. Establishment of website engineering structure:

Express-e Ejs  Microblog

3. Follow the prompts to enter the folder installation

// microblog create a project folder for the previous NPM install

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.