Senthil_Research

How to fix ionic show old version

  • open the command prompt type below command
    • which ionic
  • It will show the path where the old ionic presence.
  • Go to that folder and delete the below files.
    • ionic and ionic.cmd
  • now install the new version of ionic using below command
    • npm install -g ionic
  • After successful installation check the version of ionic
    • ionic –version (now it will show the new version)

 

How to uninstall ionic

  • open the command prompt type the below command
    • npm uninstall -g ionic
    • run ionic –version (which shows no command ionic)

Fixing issue in adding cordova plugin.

When i tried to add the cordova plugin in my ionic app i have faced some isssue in downloading the plugins. It always says fetch failed error message.  I have used the below method to resolve the issue.

Move into your project folder install the cordova from git repo using the below command.

cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-device.git

Now try to add the plugin using the below command.

Camera plugin

cordova plugin add org.apache.cordova.camera

File plugin

cordova plugin add org.apache.cordova.file

InAppbrowser

cordova plugin add org.apache.cordova.inappbrowser
Advertisements

One thought on “Senthil_Research

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s