To install Phonegap on Ubuntu (mine is 14.04) you would need node.js/npm.

So first let’s go ahead and install the latest node.js –

 
Note: Doing –

installs quite an old version of node.js.

So next to install Phonegap just run –

 
For 64-bit systems, install the 32-bit dependencies:

 
To check do a

and you will get the version number of Phonegap installed in your system.

Now that we have our installation in place. Let’s create an app and run that. Go to the directory where you want to create the app and run the following command –

 
Now cd to my-app directory and start the Phonegap server

 
You might get a different ip for your machine. But the server has started.

You can check my-app using the browser (you might get some errors in the console, as it won’t find the cordova.js). This is what you should see –

screenshot-from-2016-11-06-235917

But better still you can install the Phonegap app on your phone and check it there.

Congratulations, you have created your first Phonegap mobile app.

Phonegap : Initial Setup on Ubuntu
Tagged on: