AngularJS4.0 Environment Construction Detailed--windows system environment

Source: Internet
Author: User

First step: Install Nodejs

Download the latest version of Nodejs and install, open the cmd command line after installation, and enter the following command:

  Node-v

  If a similar version number is returned, the Nodejs installation succeeds, as follows:

  

Second installation of NPM

  The new version of Nodejs has its own npm.

Enter the following command directly:

  Npm-v

  If a similar version number is returned, the NPM is installed

  

Step three global installation Angular CLI Command Tool

  on the cmd command line Enter the following command:

  npm install -g @angular/cli

  Installation takes a while, please be patient!

When the installation is complete, enter the following command:

  ng Help

  If a similar interface is present, the installation of the Angular CLI is successful

  

Fourth step to create the angular project

  Run the following command to generate a new project called app and skeleton code for your app:

  ng New APP

  

  It will take a while to build a new project, please wait patiently!

In the case of network instability, it is possible to create a failure!

If the interface appears, the project is created successfully:

  

Fifth Step Start Project

  Enter the following command at the command line:

CD APP

ng serve--open

  ng serveThe command launches the development server, listens for file changes, and re-constructs the app when the files are modified.

Use the --open (or -o ) parameter to automatically open the browser and access it http://localhost:4200/ .

Summary: To here angular environment Construction has been completed!

  

AngularJS4.0 Environment Setup--windows system environment

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.