brodycj / cordova-sqlite-ext

A Cordova/PhoneGap plugin to open and use sqlite databases on Android/iOS/macOS/Windows with REGEXP (Android/macOS/iOS) and pre-populated databases (Android/iOS/macOS/Windows)
Other
72 stars 55 forks source link

Failed to fetch plugin #62

Open jdnichollsc opened 7 years ago

jdnichollsc commented 7 years ago

Hi my friend, I'm getting the following issue when I try to install the plugin: Error: Failed to fetch plugin https://github.com/litehelpers/cordova-sqlite-ext via registry.

Let me know what you think. Regards, Nicholls

jdnichollsc commented 7 years ago

Logs from Visual Studio:

1>MSBUILD : cordova-build error : Probably this is either a connection problem, or plugin spec is incorrect.
1>MSBUILD : cordova-build error : Check your connection and plugin name/version/URL.
1>MSBUILD : cordova-build error : Error: cmd: Command failed with exit code 1 Error output:
1>MSBUILD : cordova-build error : npm ERR! code 1
1>MSBUILD : cordova-build error : npm ERR! Command failed: C:\Program Files\Git\cmd\git.EXE checkout master
1>MSBUILD : cordova-build error : npm ERR! error: pathspec 'master' did not match any file(s) known to git.
1>MSBUILD : cordova-build error : npm ERR!
1>MSBUILD : cordova-build error : npm ERR! A complete log of this run can be found in:
1>MSBUILD : cordova-build error : npm ERR! C:\Users\rey\AppData\Roaming\npm-cache\_logs\2017-06-08T22_21_44_243Z-debug.log

Thanks in advance, Nicholls

brodycj commented 7 years ago

Evidently you tried to install the plugin from GitHub. It is highly recommended to install the npm package instead. There is a higher chance that the tooling will track the actual plugin version in places such as config.xml and maybe package.json.

The log shows that your Visual Studio tooling tried to install from the master branch instead of simply installing from the default branch. (I noticed that PhoneGap Build was doing this as well.) Not supported by this project.