how to install the latest cordova and ionic command-line tools code example Example: install ionic globally $ npm install -g @ionic/cli