Attempting to add the plugin to a new project on the latest Cordova falls back to 2.2.4 and not the latest 5.0.1.
Cordova: 7.1.0
cordova plugins add cordova-plugin-hockeyapp
Unmet project requirements for latest version of cordova-plugin-hockeyapp:
cordova (7.1.0 in project, >100 required)
Fetching highest version of cordova-plugin-hockeyapp that this project supports: 2.2.4 (latest is 5.0.1)
Steps to reproduce:
// Create a new project.
cordova create hello com.hello hello
Creating a new cordova project.
// Add the Android platform
cordova platforms add android
Using cordova-fetch for cordova-android@~6.3.0
Adding android project...
Creating Cordova project for the Android platform:
Path: platforms\android
Package: com.hello
Name: hello
Activity: MainActivity
Android target: android-26
Subproject Path: CordovaLib
Android project created with cordova-android@6.3.0
Discovered plugin "cordova-plugin-whitelist" in config.xml. Adding it to the project
Installing "cordova-plugin-whitelist" for android
This plugin is only applicable for versions of cordova-android greater than 4.0. If you have a previous platform version, you do *not* need this plugin since the whitelist will be built in.
Adding cordova-plugin-whitelist to package.json
Saved plugin info for "cordova-plugin-whitelist" to config.xml
--save flag or autosave detected
Saving android@~6.3.0 into config.xml file ...
// Add the plugin
cordova plugins add cordova-plugin-hockeyapp
Unmet project requirements for latest version of cordova-plugin-hockeyapp:
cordova (7.1.0 in project, >100 required)
Fetching highest version of cordova-plugin-hockeyapp that this project supports: 2.2.4 (latest is 5.0.1)
Installing "cordova-plugin-hockeyapp" for android
Subproject Path: CordovaLib
Adding cordova-plugin-hockeyapp to package.json
Saved plugin info for "cordova-plugin-hockeyapp" to config.xml
Though running the add command with "latest" after running it without it, won't upgrade from 2.2.4 to 5.0.1. Run remove and add to get 5.0.1.
Perhaps the requirements configuration should be fixed on npmjs? Not sure if the same problems occurs if one uses the built-in plugins manager in Visual Studio?
Attempting to add the plugin to a new project on the latest Cordova falls back to 2.2.4 and not the latest 5.0.1.
Cordova: 7.1.0
Steps to reproduce:
Is the correct solution to simply use:
This will install 5.0.1.
Though running the add command with "latest" after running it without it, won't upgrade from 2.2.4 to 5.0.1. Run remove and add to get 5.0.1.
Perhaps the requirements configuration should be fixed on npmjs? Not sure if the same problems occurs if one uses the built-in plugins manager in Visual Studio?