Problem whan install ionic 2



after i install ionic
i get the msg:
Dependency warning - for the CLI to run correctly,
it is highly recommended to install/upgrade the following:

Please install your Cordova CLI to version >=4.2.0 npm install -g cordova

how i fix that?


CLI warning itself says that, npm install -g cordova.

Check your Cordova CLI version by typing cordova -v in terminal.
If it is less than 4.2.0 then update it.

To update run into your terminal npm install -g cordova OR npm install -g cordova@latest (provide sudo if necessary) to update your CORDOVA CLI to latest version.