Ich habe eine App, die immer nur gut über PhoneGap CLI gebaut.Phonegap schlägt fehl, aufgrund von Plugin-Fehlern
Ich habe es ein paar Wochen verlassen und versucht, heute neu zu erstellen (keine Codeänderungen) und ich habe eine Welt der Fehler.
Error - Plugin error (you probably need to remove plugin files from your app): Fetching plugin "[email protected]^1.6.3" via npm Installing "cordova-plugin-file-transfer" at "1.7.0" for android Failed to install 'cordova-plugin-file-transfer': CordovaError: Version of installed plugin: "[email protected]" does not satisfy dependency plugin requirement "[email protected]^5.0.0". Try --force to use installed plugin as dependency. at /home/ec2-user/.npm/lib/node_modules/pgb-plugman/node_modules/pgb-cordova-lib/src/plugman/install.js:581:33 at _fulfilled (/home/ec2-user/.npm/lib/node_modules/pgb-plugman/node_modules/q/q.js:787:54) at self.promiseDispatch.done (/home/ec2-user/.npm/lib/node_modules/pgb-plugman/node_modules/q/q.js:816:30) at Promise.promise.promiseDispatch (/home/ec2-user/.npm/lib/node_modules/pgb-plugman/node_modules/q/q.js:749:13) at /home/ec2-user/.npm/lib/node_modules/pgb-plugman/node_modules/q/q.js:509:49 at flush (/home/ec2-user/.npm/lib/node_modules/pgb-plugman/node_modules/q/q.js:108:17) at _combinedTickCallback (internal/process/next_tick.js:67:7) at process._tickCallback (internal/process/next_tick.js:98:9) Version of installed plugin: "[email protected]" does not satisfy dependency plugin requirement "[email protected]^5.0.0". Try --force to use installed plugin as dependency. - You can fix this here
„du hier beheben können“ führt mich dazu:
The most likely cause for this error is error is that you have included plugin javascript files in your app package, such as barcodescanner.js, GAPlugin.js, cdv-plugin-fb-connect.js, or any other plugin files such as the childbrowser assets directory.
Previously we used pluginstall to install plugins, which would simply overwrite files in your app. However we recently migrated to plugman, which will not overwrite these files and instead fails. So make sure you remove them! [my bold]
Ich weiß nicht, was das bedeutet. Warum sollte ich Plugin-Dateien entfernen, wenn ich diese Plugins benötige? Muss ich aus irgendeinem Grund alle meine Plugins neu installieren, oder gibt es eine Möglichkeit, zu einer vorherigen PG-Version zurückzukehren, wenn alles Ball gespielt hat? (Dies setzt voraus, dass dies aufgrund kürzlich vorgenommener Änderungen an der Funktionsweise von PG geschieht.)
Wenn mich jemand von diesen massiven Kopfschmerzen in die richtige Richtung weisen kann, wäre das zu begrüßen!