Express configuration process (Windows)

Source: Internet
Author: User

0. Configure the Express environment variables: System variables, environment variables---Properties--- > Add after Path%NODE_PATH%

1. After setting the environment variable, you can restart your computer or Restart Explorer: Enter cmd/k taskkill/f/im explorer.exe && start Explorer.exe after Windows+r

2. After installing node. js, enter node-v on the cmd command line, and if you print the version you installed, then the Nodejs installation is successful. Enter NPM-V print corresponding version Description NPM installation is successful

3. First create a new two folder under the file path of the installation Nodejs Node_global and Node_cache

4. Type in the cmd command line: NPM config set prefix "E:\nodejs\node_global" and NPM config set cache "E:\nodejs\node _cache "

5. Install Global Express and Express-generator: Enter NPM install-g Express and NPM install- G Express -generatorat the command line /c11>

6. The latest version defaults to the Ejs template engine, and the command line input node Ejs require ("express") can be used to detect whether the installation was successful

7. Enter Express--version on the command line to detect the Express version (note: Must be--version)

Express configuration process (Windows)

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.