Installation of NODEJS environment and express plugin under window

Source: Internet
Author: User

Angular is a popular front-end JS architecture that uses ANGULAR2. x development front-end interface requires a more stable and fast background,

Today we use Nodejs and express to build a local server under window

Logical steps:

1window operating system, install Nodejs MSI installation package, latest version (6.9.4) comes with NPM (Nodejs plugin manager)

2 using NPM to install Express (Nodejs http plugin) and Express-generator (express4.x version of the command mode and program separation, with the generator to execute the Express command)

3 When the installation is complete, use the ' EXPRESS-E project name ' to generate the Express project

By "retreat" to rationalize the logical steps, we can easily handle the installation process encountered problems

1 Official website Download Nodejs New Edition, I use 6.9.4 version, https://nodejs.org/en/

2 Use the downloaded MSI file to complete the installation process, select all installation options to install, attach, click Next to complete the next step

3 Check if there are nodejs in the environment variable

4 Install Express and express-generator using the command ' NPM install-g Express ' and ' NPM install-g express-generator '

This information is not a hint of initial installation, and the novice installation does not have to be compared with this

5 use ' express-e app ' to create an express project named app in the current directory and follow the prompts

Run ' npm install ' and ' npm start ' to install and run the project in the app folder

6 run the project under the project folder using ' NPM start '

7 default is 3000 Port run project

Use ' localhost:3000 ' to access local projects, successfully

I use the operating system: Win7 64-bit

If you have a problem, follow the logical steps to find the reason repeatedly

Windows Nodejs Environment and express plug-in installation

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.