This article will help you to install the Ionic framework command-line utility on Fedora 34/33/32/31/30 Linux systems.
Step 1 – Install Node.js
Ionic required Nodejs to be installed on your system. The systems that don’t have installed Nodejs use the following commands to install the Node.js 12.x version on your system. You can visit our tutorial to install latest Node.js on Fedora systems.
curl -sL https://rpm.nodesource.com/setup_14.x | sudo -E bash - sudo dnf install nodejs
Step 2 – Install Cordova
After installing nodejs, run the following command to install Cordova on your system using the npm command. It will install all other required node modules on your system.
sudo npm install -g cordova
Step 3 – Install Ionic on Fedora
Ionic provides and commands line utility for creating packages, build and start applications. Use the NPM command to install the Ionic framework on your system.
sudo npm install -g @ionic/cli
After completing the installation of the Ionic framework, use the following command to check the installed version.
ionic -v 6.16.3
Step 4 – Create Sample Application
Now, You need to create a new Ionic application on your computer by running the following command.
Now follow the wizard:
- 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.
After completing the Wizard, you will get a message “Your Ionic app is ready!”. It will also show the next steps on the screen.
Now, run the below command from your application directory.
cd ionic-app ionic serve --host 0.0.0.0 --port 8100
Then access your ionic application in a web browser using system IP.