Visual Studio code as a common plug-in installation for angular development tools, json-server installation and use, ANGULAR/CLI installation failure issues

Source: Internet
Author: User

Prerequisite Preparation:

Build up the angular development environment.

1 Installing Visual Studio Code

Tutorial simple, not to ask the Niang

2 Installing the Chrome browser

Tutorial simple, not the fun of the Niang

3 Visual Studio code needs to be installed plug-in 3.1 Debugger for Chrome

For debugging angular apps directly in Google Chrome

    

3.2 Angular5 Snippets

Code generation plug-in, primarily used to quickly generate code in Vscode

    

4 chrome needs to install plug-in 4.1 augury plugin

For information about viewing angular apps in Google Chrome

4.1.1 access to the Google Plugin installation page

Click to go

      

4.1.2 Enter the ID of the Augury plugin

Augury Plugin ID ELGALMKOELOKBCHHKHACCKOKLKEJNHCD

Resources: Click to download

4.1.3 Install download Good augury plugin

Simply drag the downloaded plugin to the extension

4.1.4 Reference Blog: Click to go

5 Json-server Installation and use

Json-server is a tool that simulates background JSON data equivalent to Wiremock

Json-server supports the Get post delete put operation, and can automatically generate ID

5.1 Installation

NPM install-g Json-server

    

5.2 Creating a JSON file using 5.2.1
{    "users": [        {            "name": "Wys",            "id": "1234qasdfasdf",            "pwd ":" 333 "        },        {            " name ":" WYC ",            " id ":" asdfasdfq1234 ",            " pwd " : "222"        }    ]}
5.2.2 executed in the same directory as the JSON file

Json-server JSON file

      

5.2.3 accessing Http://127.0.0.1:3000/in the browser to view API information

      

GET Request:

        

POST request:

        

        

6 Installation ANGULAR/CLI Error resolution

Perform NPM uninstall-g @angular/cli Uninstall
Perform NPM cache clean clear Caching
Perform NPM install-g @angular/cli Reinstall

Visual Studio code as a common plug-in installation for angular development tools, json-server installation and use, ANGULAR/CLI installation failure issues

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.