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