- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm using this plugin...
https://www.npmjs.com/package/cordova-plugin-indexeddb-async
As you can see there are two install options...
#Installation Install via the Cordova CLI. For Cordova CLI 4.x, use the GIT URL syntax: cordova plugin add https://github.com/ABB-Austin/cordova-plugin-indexeddb-async.git For Cordova CLI 5.x, use the new npm syntax: cordova plugin add cordova-plugin-indexeddb-async
I can install the plugin by using the CLI 4.x URL, but how do I install using npm to get the CLI 5.x version?
TIA
- Tags:
- HTML5
- Intel® XDK
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can add that plugin using the Plugin Manager, just pick a third party plugin and then enter the git url in
https://github.com/ABB-Austin/cordova-plugin-indexeddb-async.git
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Or, choose the "Cordova plugin registry" option and use the package name > cordova-plugin-indexeddb-async
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks,
My point was that the page quoted above implies that there are TWO DIFFERENT VERSIONS of the plugin - is this not the case, and there are just two different install methods for the different CLI's?
When I go to the GIT repository it appears there is only one plugin - I installed it from there. I was just confused by the two different install methods in the original page.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The two sets of instructions are confusing. They exist because the older CLI 4.x system tries to pull from the now retired Cordova registry, so you have to add using the git repo address (if you're using Cordova CLI directly). The CLI 5.x (and 6.x) systems pull from the new Cordova registry, which is located in NPM. If you're using the XDK it doesn't matter, we have taken care of those problems.
One thing to note, some plugin authors will maintain multiple branches in their git repos to deal with special issues. I don't see that in this particular plugin's repo. It's generally safer to pull them from the NPM repo (new Cordova registry) because the git repos can be in an unknown state and you don't know what you're getting.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page