Install Ionic Framework for android development on ubuntu

I have recently been exploring different mobile development frameworks, more specifically JavaScript, HTML and CSS  hybrid frameworks.  The one framework I have enjoyed working with the most is Ionic  , due to that it has been the one with the most minimal learning curve for myself as it readily use Angular.  I have quite literally got up and running developing an app in hours.  It is awesome and really easy to learn.


Ionic is a free and open source library of mobile-optimized HTML, CSS and JS CSS components, gestures, and tools for building highly interactive apps. Built with Sass and optimized for AngularJS.

Although the setting up of Ionic and developing with ionic was extremely easy on my Macbook, I found the installing and setting up on my Ubuntu Workstation for android development a little trickier.  I found a few good resources out there to help, like Nic Raboy’s Install Android, Cordova and Ionic in Ubuntu , I did find that I needed to tweak his script a little.


The updates I had to make to Nic’s script were to remove the installation of Node , due to the fact I will install it via Node Version Manager  and install the Ionic 2 Framework, the core of Nic’s script remained the same,  and it is still worthwhile watching his video tutorial to get additional information. I thought I would post my version in order to provide further assistance to folks out there.

Install Node using Node Version Manager

One of the key areas I had to do differently to Nic’s post was I installed Node.JS by using the Node Version Manager.  This is now my preferred method on a Ubuntu Workstation, for a number of reasons.

  • Enables the execution of npm without sudo
  • enables the installation of number of different versions of node.js
  • Easily maintainable


NOTE :  Currently Ionic will only work with Node Version 4 and Below.   Currently it does not support of Node 5 .


I have removed the installation of node from the Script, in part because the instructions in Install Node using Node Version Manager covers this process.


Updated Script

I have also update the script to install the most current Android at the time of writing

Additional Steps


Once the script has finished executing you will need to restart your Ubuntu machine for the changes to take effect.   Then once you have completed restart then complete these additional steps:

Open a terminal Window  (ctrl + alt + t ).  and type android and enter

This will open the Android SDK Manager  and Select Android 5.1.1 (API 22)
Android SDK Manager

You can customise what you want to select from this list depending on what you need.

Gary Woodfine

Freelance Full Stack Developer at
Helps businesses by improving their technical proficiencies and eliminating waste from the software development pipelines.

A unique background as business owner, marketing, software development and business development ensures that he can offer the optimum business consultancy services across a wide spectrum of business challenges.

Affiliate Disclaimer

Disclosure: Please note that some of the links included in the blog posts are affiliate links, which means I will earn a commission if you decide to make a purchase.

I only include affiliate links to products, services and companies that I have personal experience and have actually used. I only recommend them because they are helpful and useful, not because of the small commissions I make if you decide to buy something.

Please do not spend any money on these products unless you feel they are relevant, suitable and will help you achieve your goals.

Buying anyone of these products and the commisions earned will not make me an overnite multi millionaire, but they will help to cover the hosting costs and compensate for the countless hours and effort I put in to create meaningful and valuable free content I provide to help others succeed.

You've also undoubtedly noticed that I also use various advertising networks - unless of of course you're using an Ad blocker, this is also an attempt to reduce my monthly deficit I experience in providing free relevant, valuable and on occassion insightful content for the benefit of others.

I only really make some money if people click on the ads, unless of course you consider 1c per 1000 impressions real money!

Bear in mind just how many impressions I need to make before I can cover my £20 hosting costs a month!

If you are using an adblocker and guilt stricken you can of course donate using any of the buttons below, but I won't be holding my breath.

Buy me a coffeeBuy me a coffee