Search code examples
angularjsionic-v1

when making .apk file generate error


When i run ( ionic cordova build android --release ) to make .apk file . the error occur ( TypeError: env.runcmd is not a function). I try following step to resolve like. 1.npm install @ionic/cli-plugin-cordova@latest it not solve.


Solution

  • May be issues with your plugins out of date or any bugs with latest upgrades.

    Try :

      Remove your node_modules folder 
      npm install --save --save-exact ionic@3.6.0 
      npm install
    

    Freshly install all the node modules.