node. JS Basic Learning Express installation using

Source: Internet
Author: User

Install Nodejs, we need to install express using the command line.

By default, node. JS is installed in the C:\Program files\nodcejs\ disk.

In the status of maintaining networking, enter the following command in turn.

Set " C:\Program Files\nodejs\node_global "  Set"C:\Program files\nodejs\node_cache"npm Install  --G express-generator

After the installation is complete, configure it in the system environment variable.

In the system variable, add the value named Node_path variable to C:\Program Files\nodejs\node_global,

Then add%node_path% after the system variable "Path"

Restart CMD, then.

You can use Express-v to view the version;

  

After the environment is fully configured, you can create the project under the specified directory, which supports JADE/EJS----EXPRESS-T EJS project name

Add a reference to the dependency package and go to the project folder---npm install

node. JS Basic Learning Express installation using

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.