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.
so, installing ionic 2 also like ionic 1. Install nodejs & Install corodva, ionic.
- Download latest node.js from https://nodejs.org/en/
- 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):
- kill running nodejs via terminal: killall -9 node
- completely remove below folders
- /usr/local/lib/node_modules
- /usr/local/include/node and /node_modules
thats it, run above install command to re-install ionic 2.
No comments:
Post a Comment