When I move the PhoneGap project to another folder, I can no longer run the commands phonegap local. For example, this command:
phonegap local
phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-console.git
leads to this error:
[error] project directory not found
I assume that PhoneGap defines the project directory somewhere in the configuration, and it cannot find my project because I moved it to another folder. Is there a way to change the PhoneGap project directory in the configuration?
CLI ".cordova" , .
, .
.cordova config.json( ), .
, PhoneGap :
, PhoneGap . , phonegap create myapp.
phonegap create myapp
To complete other answers, this thread will help you understand what to use in version control or not. The .cordova file should rather be a version to avoid such problems.
What parts of projects generated by cordova cli can be safely versioned in the source control?
you can use plugman npm install -g plugman
after he adds the plugin: plugman install --platform ios --project / YOUR / PROJECT / PATH / PATH / platform / ios --plugin / YOUR / PLUGIN / DIR / plugin1