Where does Phonegap determine the project directory?

When I move the PhoneGap project to another folder, I can no longer run the commands phonegap local. For example, this command:

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?

+4
source share
5 answers

CLI ".cordova" , .

, .

+8

.cordova config.json( ), .

+3

, PhoneGap :

  • .cordova, config.json.
  • www, config.xml.
  • .

, PhoneGap . , phonegap create myapp.

+1

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?

+1
source

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

0
source

All Articles