Angular2.0 Environment Construction

Source: Internet
Author: User
Tags using git git commands

Recently in the use of learning Angular2, actually read the ANGULAR2 document know, compared to the previous changes in the ANGULAR1,ANGULAR2 is quite large.

For the ' angular2 ' Local development environment, we first need to install the Nodejs locally

    • We can go to the official website clone a QuickStart demo (if you want to clone a project file using GIT commands on the official website, install a git first)

You can also create your own

Then enter the file path where the project file resides in node. js Command Prompt

Then execute the NPM install (in fact this install is a process to download the Angular2 module library),

When you're done, you'll find a node_modules file in the project file.

You can then open the project file under your compiler for local editing and development.

After editing is complete, go back to node. js command Prompt to execute the NPM start command. You can see the corresponding structure.

    • Configure Webstorm

First of all, we're going to configure the typescript in the Webstorm settings, configure the installation path for your nodejs.

Then if we want to create a ANGULAR2 project in Webstorm, we can install angular CLL again.

    • Problems that may arise in projects that use Webstorm to develop ANGULAR2:
    1. Can not find module * * * *

There is a possibility that this problem may occur: The Webstorm typescript is not configured accordingly

Two: Node_module not imported (can be copied directly in.) You can also download NPM install with the Nodejs command)

It's like making sure you have package.json,tsconfig.json,systemjs.config under your project file before downloading.

Angular2.0 Environment Construction

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.