In this post, you will learn How to install Ionic Framework on Ubuntu & Debian Servers
- 1-2GB of RAM (The more the better performance)
- 1-2vCore CPU
- 5-10GB Disk (SSD should be preferred in this case)
Step 1 : Update your server
First step is to update your server to look for any newer packages and security releases available for your system
apt-get update -y
apt-get upgrade -y
Step 2 : Install NodeJS
Ionic Framework uses NodeJS for development and for the installation of the Ionic Framework through npm command. Run the following command to install NodeJS
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash –
apt-get install nodejs
Step 3 : Install Cordova
After the installation of NodeJS we have to install Cordova, While installing Cordova it installs all the required node modules as well
npm install -g cordova
Step 4 : Install Ionic Framework
We have everything required to install Ionic Framework, We can now run the following command which will install Node Modules of Ionic and Ionic CLI.
npm i -g @ionic/cli
Verify the installation through :
Now we can deploy our first application by running the following command
Follow the following instructions :
- 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?
Run your application :
cd ionic-app ionic serve –host 0.0.0.0 –port 8100
You have installed ionic framework on your Ubuntu/Debian server. This tutorial assumes you are root!