Install specific version of Cordova CLI in Visual Studio 2017

前端 未结 4 1043
囚心锁ツ
囚心锁ツ 2020-12-06 14:46

I need to do some updates to a Cordova app created using Visual Studio 2017 Tools for Apache Cordova (TACO).

The Cordova CLI version listed in the config.xml file is

4条回答
  •  猫巷女王i
    2020-12-06 15:10

    I don't see any updates to TACO in VS2017 or instructions in the Microsoft documentation for Apache Cordova Tools.

    You can follow below steps to use the latest cordova-ios:

    1. Open config.xml with designer
    2. Toolset->Check the checkbox of Take latest patch(requires internet) on cordova-ios row.

    Update:

    If you don't see the checkbox in the designer page, you need to change it in the xml. Find the following tag in config.xml:

    
    

    and modify it to:

    
    

    Update2:

    If the version is still not update to the latest, please try the below steps to fix the issue:

    1. Clear the cordova cache under: Tools->Options->Tools for Apache Cordova->Clear Cordova cache.
    2. Open cmd of your project folder;
    3. Type npm install -g cordova-ios to install globally the cordova-ios(requires node installed as pre-work);
    4. Then cordova platform rm ios;
    5. Type cordova platform add ios;
    6. Run your project again

提交回复
热议问题