Cordova - Current working directory is not a Cordova-based project

前端 未结 14 2406
逝去的感伤
逝去的感伤 2020-12-30 19:56

I\'m using phonegap for my mobile project. My question is why I got this error when I try to search phonegap plugin using cordova CLI? I run this command in terminal to sear

14条回答
  •  青春惊慌失措
    2020-12-30 20:35

    If you are getting this error on Ionic2
    This issue generally occur when we just clone / download app and try to add platform to it.

    its very easy to resolve, then here are the steps-

    just create a "www" directory in application root.

    "./www"
    

    can also do by this command-

    mkdir www
    

    now we can easily run following command -

    ionic platform add android
    or
    ionic platform add ios
    

    Hope it will help!!!

提交回复
热议问题