properly install ionic code example Example 1: install ionic globally $ npm install -g @ionic/cli Example 2: ionic install npm install -g @ionic/cli