Facebook Twitter Instagram
    TecAdmin
    • Home
    • Ubuntu 20.04
      • Upgrade Ubuntu
      • Install Java
      • Install Node.js
      • Install Docker
      • Install LAMP Stack
    • Tutorials
      • AWS
      • Shell Scripting
      • Docker
      • Git
      • MongoDB
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    Home»Programming»Nodejs»How to Install and Use Cordova on Debian 10/9/8

    How to Install and Use Cordova on Debian 10/9/8

    RahulBy RahulApril 29, 20182 Mins ReadUpdated:September 10, 2019

    Apache Cordova is an open-source mobile development framework. It allows you to use standard web technologies such as HTML5, CSS3, and JavaScript for cross-platform development, avoiding each mobile platforms’ native development language. Apache Cordova command-line requires Node.js to run and available on NPM. This tutorial will help you to Install and Use Apache Cordova on Debian 10 Buster, Debian 9 Stretch, Debian 8 Jessie and Debian 7 Linux systems.

    • Recommended: Install Ionic Framework on Ubuntu and LinuxMint

    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.

    sudo apt-get install python-software-properties
    curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
    sudo apt-get install nodejs
    

    2. Install Cordova with NPM

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

    sudo npm install -g cordova
    

    3. Test Cordova Version

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

    cordova --version
    
    8.0.0
    

    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.

    cordova create myapp
    

    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.

    cordova platform add ios
    cordova platform add android
    

    Use below command to list the installed and available platforms for Cordova application.

    cordova platform -ls 
    
    Installed platforms:
      android 7.0.0
      ios 4.5.4
    Available platforms:
      browser ~5.0.1
      osx ~4.0.1
      windows ~5.0.0
      www ^3.12.0
    

    If you accidentally added any platform which you no longer needs, just remove that using commands like below.

    cordova platform remove ios
    cordova platform remove android
    

    5. How to Build Cordova Application

    Before building a Cordova application, make sure that the system fulfills all the requirements for your build environment.

    cordova requirements
    

    On all requirements completed successfully run the build command to build your application.

    cordova build              ## Build all added platforms 
    cordova build android      ## Build for specific platform 
    
    cordova NodeJs
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp
    Previous ArticleHow To Enable TLS 1.2 Only In Nginx Web Server
    Next Article How To Install Ionic Framework on Debian 10/9/8

    Related Posts

    How To Install NVM on Ubuntu 22.04

    Updated:April 16, 20223 Mins Read

    How To Install NVM on Windows

    Updated:April 16, 20223 Mins Read

    How To Install Node.Js on Debian 11

    Updated:February 11, 20226 Mins Read

    How To Install NVM on Debian 11

    Updated:August 31, 20213 Mins Read

    How To Use Environment Variables in Node.js

    6 Mins Read

    How to Parse Command Line Arguments in Node.js

    5 Mins Read

    Leave A Reply Cancel Reply

    Recent Posts
    • How to Install Sublime Text 4 on Ubuntu 22.04
    • How to Enable / disable Firewall in Windows
    • How to Install JAVA on Ubuntu 22.04
    • Switching Display Manager in Ubuntu – GDM, LightDM & SDDM
    • Changing the Login Screen Background in Ubuntu 22.04 & 20.04
    Facebook Twitter Instagram Pinterest
    © 2022 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.