Currently creating Ionic2 version project in VS 2017
Note: To develop an Ionic project in VS, the versions of Ionic (v2.x), Cordova (v6.3.1) and Angular (v2.x) are relatively low.
1. Prerequisite, when installing VS, choose to install "Mobile Development Using JavaScript"
If it is not installed, select the update extension in VS and reinstall it
2. Install the development plugin for Ionic2: NPM Task Runner and Ionic 2 Templates for Visual Studio 2017
Open the online installation of the plug-in. After downloading, close VS and install it automatically.
Tools > Extensions and Updates, as shown above
3. Create an Ionic2 project and initialize it
Due to network and other reasons, the package initialization process is very slow, and some may not be loaded successfully.
Enter the Windows command prompt.
输入: npm install @ionic/app-scripts@latest --save-dev
If it is executed successfully, enter VS2017 again and you will find that @ionic/app-scripts has been updated.
If there are many package installation failures, solution 1, use npm proxy installation, such as Taobao mirror: cnpm i
4. Start running, debugging
More: