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
I cannot explain the source of the error, but in case you are looking for a solution, you might want to try plugman instead.
you have to be in the current project in command prompt(example project name is myapp).
Did you come here because your Azure DevOps (fka VSO/VSTS) Cordova build pipe task failed with "Current working directory is not a Cordova-based project"?
Resolved by creating the required (and missing) folder 'www\', with a powershell having script:
New-Item -ItemType directory -Path www\
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!!!
Yes, as QuickFix said, you need to be in a Cordova project before being able to use most of cordova Commands. If you are curious about what defines a Cordova project, this is what I found:
With that in place you can use Cordoba commands without problem. If you need examples of those config files just run cordova create myapp
.
ionic serve
cordova prepare