Recently, looking at the node. JS Development Guide, you see a problem with preparing to create a Ejs project when using Nodejs for Web development
The book command is: Express-t Ejs microblog but after execution, the Jade project was still created. Originally, express3.x,express4.x in the creation of the Ejs command updated to: EXPRESS-E microblog//That is ejs,-j (that is, jade) of course, the most direct, you can also modify the definition of Package.json to implement the installation Ejs. PS: Establishing the Engineering Process 1. The Express framework must be installed: Express installation command also updated, need to install Express-generator $ NPM install-g Express//Global installation $ NPM install-g Expres S-generator//This command may not be forgotten, or you will be prompted to "express command cannot find" 2. Establish website Engineering structure: EXPRESS-E Ejs microblog3. Follow the prompts to go to the folder installation CD microblog//microblog Create a project folder for the previous NPM install the last, but will still error. But the papers are right. Ejs created successfully! Example: 6 error Package.json NPM can ' t find a Package.json file in your current directory. I don't know what the reason is.
Create Ejs project in Nodejs Express error install couldn ' t read dependencies