Ionic platform add android error

ionic platform add android
Updated the hooks directory to have execute permissions
Downloading Default Ionic Resources
Downloading: https://github.com/driftyco/ionic-default-resources/archive/master.zip
[=============================] 100% 0.0s
Done adding default Ionic resources
Adding icons for platform: android
module.js:328
throw err;
^

Error: Cannot find module 'cordova-common’
at Function.Module._resolveFilename (module.js:326:15)
at Function.Module._load (module.js:277:25)
at Module.require (module.js:354:17)
at require (internal/module.js:12:17)
at Object. (C:\Users\PAMS\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\plugman.js:22:14)
at Module._compile (module.js:398:26)
at Object.Module._extensions…js (module.js:405:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Module.require (module.js:354:17)

What is your environment? Please show the output of ionic info

OS :Windows -8
ionic info

Your system information:

Cordova CLI: Not installed
Ionic Version: 1.2.1
Ionic CLI Version: 1.7.12
Ionic App Lib Version: 0.6.5
OS: Windows 8.1
Node Version: v5.3.0


Dependency warning - for the CLI to run correctly,
it is highly suggested to install/upgrade the following:

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


So did you try what the error message suggested? npm install -g cordova

By the way, prefer the LTS (Long Term Support) releases of node rather than so-called stable one 5.3.x.

Same here.

Take a look to the output of ionic info : Cordova CLI: Not installed. Cordova seems to be not installed even after running npm install -g cordova.

I managed to make it work by installing the previous version of cordova (5.4.0 instead of 5.4.1).

Hope it helps.