erisu commented on issue #508: URL: https://github.com/apache/cordova-cli/issues/508#issuecomment-648590059
@aidanas Can you please test with `cordova@nightly` and confirm if this is still an issue? When I tested with nightly and it appears that plugins are being restored correctly. ```bash rm -rf package-lock.json node_modules platforms plugins $ cordova prepare Warning: using prerelease version 10.0.0-nightly.2020.6.24.7b8e8678 ([email protected]) Discovered platform "android". Adding it to the project Using cordova-fetch for [email protected] Adding android project... Creating Cordova project for the Android platform: Path: platforms/android Package: com.test.foobar Name: foobar Activity: MainActivity Android target: android-28 Subproject Path: CordovaLib Subproject Path: app Android project created with [email protected] Discovered plugin "cordova-plugin-whitelist". Adding it to the project Installing "cordova-plugin-whitelist" for android Discovered plugin "cordova-plugin-geolocation". Adding it to the project Installing "cordova-plugin-geolocation" for android Installing "cordova-plugin-compat" for android Plugin doesn't support this project's cordova-android version. cordova-android: 8.0.0, failed version requirement: <6.3.0 Skipping 'cordova-plugin-compat' for android $ cordova plugin ls Warning: using prerelease version 10.0.0-nightly.2020.6.24.7b8e8678 ([email protected]) cordova-plugin-compat 1.2.0 "Compat" cordova-plugin-geolocation 2.4.3 "Geolocation" cordova-plugin-whitelist 1.3.4 "Whitelist" ``` The issue you are reporting might exist in 9.x but not in the upcoming 10.x release which is being prepared. You can test with nightly by updating your global install: ```bash npm uninstall -g cordova npm install -g cordova@nightly ``` You might also be able to use `npx` command in the cordova project directory and not update your global install. ``` npx cordova@nightly prepare ``` Please remember that nightly is not production ready as it has not been voted on for release. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
