Create Ejs project in Nodejs Express error install couldn ' t read dependencies

Source: Internet
Author: User

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

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.