To install the ionic framework in ubuntu system using command prompt or terminal. In this tutorial, you will learn how to install the ionic framework on Ubuntu 20.04/22.04 using a terminal or command prompt.
This guide shows simple ways of installing ionic framework on ubuntu 20.04/22.04. And if you want to install ionic in ubuntu 18.04, So you can use the same steps given below for Ubuntu and all Ubuntu-based distribution, including Kubuntu, Linux Mint, and Elementary OS.
How to Install Ionic Framework on Ubuntu 20.04/22.04
Follow the following steps and install ionic in ubuntu 20.04/22.04 using terminal:
- Step 1 – Open Terminal OR Command Prompt
- Step 2 – Update APT Package
- Step 3 – Install Node
- Step 4 – Install Cordova
- Step 5 – Install Ionic on Ubuntu 20.04
- Step 6 – Create Ionic Application
Step 1 – Open Terminal OR Command Prompt
First of all, your terminal or command prompt by pressing Ctrl+Alt+T key:
Step 2 – Update APT Package
In this step, visit your terminal and execute the following command to update Apt package list:
sudo apt update sudo apt upgrade
Step 3 – Install Node
In this step, execute the following command on your terminal to install node and it’s package files:
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash - sudo apt install nodejs
Step 4 – Install Cordova
In this step, execute the following command on your terminal to install Cordova on ubuntu:
sudo npm install -g cordova
Step 5 – Install Ionic on Ubuntu 20.04
In this step, execute the following command on your terminal to install ionic framework on ubuntu 20.04:
sudo npm i -g @ionic/cli
Then execute the following command on terminal to verify ionic framework installation in ubuntu 20.04:
ionic -v
Note that, The easiest way is to install ionic framework on Ubuntu 20.04.
Step 6 – Create Ionic Application
Now, Execute the following command on terminal to create a new Ionic application on your computer:
ionic start
After that, follow the following steps and create your first ionic application:
- Select framework between React or Angular.
- Now, enter a name for your new application
- Select a starter template. The details of each template is listed on screen.
- Then, Integrate your new app with Capacitor to target native iOS and Android?
Now, run the below command from your application directory:
cd ionic-app ionic serve --host 0.0.0.0 --port 8100
Conclusion
How to install ionic framework in ubuntu system using command prompt or terminal. In this tutorial, you have learned how to install ionic framework on Ubuntu 20.04/22.04 using a terminal or command prompt.
That’s it. The ionic framework has been downloaded on your Ubuntu system.
Recommended Ubuntu Posts