MyHealthTeams / google-app-conversion-tracker

Cordova plugin for AdMob / AdWord campaign app install conversion tracking
20 stars 24 forks source link

Failed to fetch plugin cordova-plugin-google-app-conversion-tracker@0.0.2 via registry #8

Open jeanpaulgorman opened 9 years ago

jeanpaulgorman commented 9 years ago

When running '$ cordova platform add android' I'm getting the following error:

Plugin errError: Command failed: Failed to fetch plugin cordova-plugin-google-app-conversion-tracker@0.0.2 via registry.

The plugin is installed and running on the ios build. Has the package for android been removed?

pnock commented 9 years ago

Android has not been removed, it should work.

Not sure why the plugin isn't getting added though... I did see this on stackoverflow: http://stackoverflow.com/questions/28627453/plugins-are-not-always-added-after-cordova-add-platform-android-and-ios

So there may be some cordova issues around plugin management. I don't know if it's a solution, but removing the plugin and re-installing now both platforms are added might fix things.

jpgorman commented 9 years ago

I did find a solution in the end. By referencing the plugin with the cordova after platform add hooks, which uses the git repo in place of the plugin name and version. for example

"cordovaPlugins": [ "https://github.com/MyHealthTeams/google-app-conversion-tracker.git",

adyz commented 7 years ago

Same here:

Update: This happens when I add the plugin with cordova plugin add and only after I updated the cordova globally: now I have 7.0.1

Error: Failed to fetch plugin https://github.com/MyHealthTeams/google-app-conversion-tracker.git via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: npm: Command failed with exit code 235 Error output:
npm ERR! addLocal Could not install /var/folders/hb/1phk03lj5dg58mp7v7w4bk4m0000gn/T/npm-16234-37526290/git-cache-1cd2e103/b20959b38224f96440aafb11f14b466dc57678df
npm ERR! Darwin 16.5.0
npm ERR! argv "/usr/local/Cellar/node/6.3.0/bin/node" "/usr/local/bin/npm" "install" "https://github.com/MyHealthTeams/google-app-conversion-tracker.git" "--save"
npm ERR! node v6.3.0
npm ERR! npm  v3.10.3
npm ERR! code EISDIR
npm ERR! errno -21
npm ERR! syscall read

npm ERR! eisdir EISDIR: illegal operation on a directory, read
npm ERR! eisdir This is most likely not a problem with npm itself
npm ERR! eisdir and is related to npm not being able to find a package.json in
npm ERR! eisdir a package you are trying to install.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/adrian/Desktop/app/node_modules/npm-debug.log
adyz commented 7 years ago

I added a package.json file from another plugin with the data I found on this plugin.xml an it looks like now it's working just fine:

I made a fork here https://github.com/VivreTech/google-app-conversion-tracker

adyz commented 7 years ago

It should work just fine now: https://github.com/MyHealthTeams/google-app-conversion-tracker/pull/13