Create ionic2 in VS2015 wall [Use nrm to replace the source, perfect !], Vs2015ionic2

Source: Internet
Author: User

Create ionic2 in VS2015 wall [Use nrm to replace the source, perfect !], Vs2015ionic2

STEP 1 Set cnpm

Npm install-g cnpm -- registry = https://registry.npm.taobao.org build cnpm in one sentence

STEP 2 install nrm

Cnpm install-g nrm one-sentence installation of nrm [set cnpm first, and install nrm quickly]

Step 3 convert the npm Source

Obtain the nrm source list using nrm ls

Nrm use taobao Source

STEP 4 install ionic

Npm install-g cordova ionic global installation ionic [npm automatically switches to taobao source, no npm]

STEP 5 create an app

Ionic start -- v2 myApp tabs has been replaced by the npm source. In addition to downloading two packages from git, the download speed is slow !!

STEP 6 Import VS2015

Note: before importing, run build or serve in the command line to generate the bulid folder.

[This command is also available in the custom of the resource manager of the task running program in VS2015]

STEP 7 run

Note: You must set the VS2015 adroid parameter in advance. [sdk, we recommend that you install adroidstudio2. the SDK update speed in the wall is also fast !]

All available, choose to run, RIPPLE and device are recommended, and use VS Emulator to disconnect the network

PS... better than the first approach

Because the source is replaced. In the future, when vs2015 automatically calls npm, the speed is just the same. I want to give a thumbs up !!

The package downloaded from the source npm is in the same format as the original npm, so no other files are generated. The clean interface is very comfortable.

Now, after the development environment of inoic2 is successfully established, you can start to learn the UI of ionic2. Hey ~~

 

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.