I want to use the PhoneGap Developer App for my project. I updated my PhoneGap version on my Mac to the newest version with the following command:
sudo npm install -g phonegap
Then I cd
ed to my project folder (root folder) and entered the command phonegap serve
, but everything I get is an [error] project directory could not be found
. When I create a completely new project, than everything works fine, but why can't I use that Developer App with my current project?
The phonegap
commands create a hidden directory at the root of the app called /.cordova
You can move this directory into your existing app created with cordova
to enable phonegap serve
mv /app-created-with-phone-gap/.cordova /app-create-with-cordova/
If the project was created with cordova
it will be easiest to create a new project with phonegap
and then copy over the www
and config.xml
from the existing project. You will also have to add the plugins to this new project but still use cordova plugin add
to do so.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With