Search This Blog

Sunday 26 February 2017

Ionic 2 - Installation & installation issues

With ionic 2, the top level stack stays as like ionic 1 (internally lots of changes were) i.e. Cordova for communication with hardware, Angular 2 for javascript events and ionic 2 styles/classes for CSS.

so, installing ionic 2 also like ionic 1. Install nodejs & Install corodva, ionic.

  1. Download latest node.js from https://nodejs.org/en/
  2. run the command:  sudo npm install -g ionic cordova
thats it. you are done with the installation. 

sometimes, users who have ionic 1 are getting problems like, if you create a project it will get created some where else etc. for such, completely remove ionic and re-install.

follow the steps below (in mac):
  1. kill running nodejs via terminal: killall -9 node
  2. completely remove below folders
    1.  /usr/local/lib/node_modules
    2. /usr/local/include/node and /node_modules

thats it, run above install command to re-install ionic 2.

No comments:

Post a Comment