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 ~~