WebStorm 2024.1 Help

Cordova

Use this page to check the automatic configuration of PhoneGap and Cordova frameworks and update the configuration manually, when necessary.

If you followed the standard installation procedure from the frameworks and the related packages, in most cases WebStorm detects the paths to the packages and executable files.

Learn more from PhoneGap and Cordova.

Configure PhoneGap or Cordova in an empty project

  1. In the Cordova executable field, check the location of the executable file or specify the path to it if WebStorm has not detected the executable automatically. This can be phonegap, phonegap.cmd, cordova or cordova.cmd, depending on your operating system and the selected framework.

    WebStorm detects the installed version and displays it in the Cordova version read-only field.

  2. In the Cordova working directory field, specify the folder where the application files to run are stored.

  3. By default, WebStorm automatically treats the platforms or www directory as excluded and ignores it during indexing, parsing, and code completion, refer to Configuring folders in a content root.

    To preserve this default behavior, make sure the Automatically exclude working directories ('platforms', 'www' for ionic) checkbox is selected.

  4. In the Plugins area, configure a list of plugins to use in your development by installing required packages. The list shows all the PhoneGap and Cordova plugins that are currently installed on your computer, both at the global and at the project level.

    • To install a plugin, click Install. In the Available Packages dialog that opens, select the required package.

      To install the package globally, select the Options checkbox and type --global in the field. Click Install Package.

    • To remove a plugin, select it in the list and click the Uninstall button.

    • To upgrade a plugin to the latest available version, select the plugin in the list and click Upgrade.

    See Apache Cordova Plugins and PhoneGap Plugins for information about plugins and their use.

Last modified: 17 June 2024