Ionic - Error: Cannot find module 'android-versions'

ehh picture ehh · Oct 7, 2017 · Viewed 18.5k times · Source

When a try to run

ionic run android --device

I'm getting an error of module:

Error: Cannot find module 'android-versions'

Versions:

java -version 
  java version "1.8.0_144"
Android studio Version 2.3.3
ionic -v
2.2.1
cordova -v
6.5.0

Answer

ehh picture ehh · Oct 7, 2017

I found the problem and expect help somebody. I just run

npm install android-versions --save

in the project folder and worked.