node. js installation Express prompt command is not found

Source: Internet
Author: User

Add the generator parameter when installing Express:


NPM install-g Express-generator


Why should we add generator?

The original Express band CLI now splits the CLI into a separate express-generator package. The original express run generated the project is node App.js, because the Httpserver related code is in App.js, now this part of the code moved to the project directory bin/www, app.js only the implementation of the logic code to implement the app, You need to run that bin/www. It's just a simple refinement of application and package dependent version changes.

Command explanation
    • NPM Access NPM Package tool
    • Install Installation
    • Express-generator Express Generation Tool
    • - G Global Supplement: Some items are command line tools written by node, at this time, install to increase the-G flag


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.