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

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!!!

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)