Wednesday, April 12, 2017

How to Update Ionic to 2.2.2 using command line

This are some of the things issues i encountered while updating to Ionic 2.2.2 because the command ionic does not work.



  1. ionic does not work. Cannot find module 'internal/fs' (CLI v2.0.0) Your system information: Cordova CLI: 6.4.0 Ionic CLI Version: 2.0.0 Ionic App Lib Version: 2.0.0 ios-deploy version: Not installed ios-sim version: Not installed OS: Mac OS X El Capitan Node Version: v7.8.0 Xcode version: Xcode 8.2.1 Build version 8C1002
  2. so type in the command line, the new ionic is being installed 
    • sudo npm install -g ionic
  3. by now, ionic should work fine 
  4. the ionic 2.2.2 recommends installing 2 new stuff 
  5. type in to install 
    • sudo npm install -g ios-sim
  6. type in to install 
    • sudo npm -g install ios-deploy --unsafe-perm=true
  7. type in ionic info shows
    1. ionic info
  8. Enjoy! ** BUILD SUCCEEDED **