- Recommended: Setup Ionic Framework on Ubuntu, Debian, and LinuxMint for open-source SDK for hybrid mobile app developmen
Step 1 – Install Node.js and NPM
First, use the following commands to install NPM and Node.js on your system. In below commands, the first command will install some required packages on the system. The second command will add 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.
sudo apt-get install python-software-properties python g++ make sudo add-apt-repository ppa:chris-lea/node.js sudo apt-get update sudo apt-get install nodejs
Step 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
Step 3 – Check Cordova Version
After successful installation of Cordova on your system, Use the following command to check Cordova version.
cordova --version 7.1.0