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, and the book commands:
Express-t Ejs Microblog
Copy Code
But after execution, the Jade project is still being created. Originally, the Create Ejs command in express3.x,express4.x was updated to:
EXPRESS-E microblog//i.e. ejs,-j (i.e. jade)
Copy Code
Of course, the most straightforward, you can also modify the definition in the Package.json to implement the installation Ejs. PS: Establishing the 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 installation
$ NPM install-g express-generator//This command is not forgotten, otherwise it will prompt "express command cannot find"
Copy Code
2. Establishment of website engineering structure:
Express-e Ejs Microblog
Copy Code
3. Follow the prompts to enter the folder installation
CD microblog//microblog the folder for the project you created earlier
NPM Install
Create Ejs project in Nodejs Express, solve express under the default create Jade, cannot create ejs problem