Recommended: Install Ionic Framework on Ubuntu and LinuxMint

This tutorial will help you to Install and Use Apache Cordova on Debian 11, Debian 10 Buster, and Debian 9 Stretch Linux systems.

1. Install Node.js and NPM

Your Debian system must have installed NPM and Node.js. Add the PPA for node.js to your system. After that update, your all attached PPA and last command will install Node.js and NPM on your system. You can visit our tutorial to install latest Node.js on Ubuntu and debian systems.

2. Install Cordova with NPM

Now use the following command to install Cordova on your system using the npm command. It will install all other required node modules on your system.

3. Test Cordova Version

After successful installation of Cordova on your system, Use the following command to check the Cordova version.

4. Create Application using Cordova

Use the Cordova command to create your Application. Execute the below command to create an application with name myapp. You can change the name on yours. Now add the required platform in your application. This will create required files for the corresponding platform under the platforms/android and platforms/ios directories. Use the below command to list the installed and available platforms for the Cordova application. If you accidentally added any platform which you no longer need, just remove that using commands like below.

5. How to Build Cordova Application

Before building a Cordova application, make sure that the system fulfills all the requirements for your build environment. On all requirements completed successfully run the build command to build your application.