Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When trying to fetch the plugin after saving it to config.xml, it gives 404 #108

Open
yazantahhan opened this issue Apr 5, 2017 · 5 comments

Comments

@yazantahhan
Copy link

Hi,

I have a problem in fetching the plugin after adding the plugin and saving it for the first time using ionic plugin add wifiwizard --save.

This will result to add <plugin name="com.pylonproducts.wifiwizard" spec="0.2.11" /> in config.xml .

However, if you tried to fetch the plugin using the saved entry, npm gives the following error:

Failed to restore plugin "com.pylonproducts.wifiwizard" from config.xml. You might need to try adding it again. Error: Failed to fetch plugin com.pylonproducts.wifiwizard@0.2.11 via registry.

Probably this is either a connection problem, or plugin spec is incorrect.

Check your connection and plugin name/version/URL.

Error: Registry returned 404 for GET on https://registry.npmjs.org/com.pylonproducts.wifiwizard

My assumption is a mismatch between the plugin ID and npm ID. Therefore, it should be ionic plugin add com.pylonproducts.wifiwizard when installing the plugin instead of ionic plugin add wifiwizard.

@danishin
Copy link

Also encountered this error today while removing platform and re-adding the platforms to reset platforms.

@yazantahhan Did you find any solution to this issue?

@danishin
Copy link

Seems related: #61

@yazantahhan
Copy link
Author

yazantahhan commented Jul 20, 2017

@danishin What I did as a workaround that I changed the plugin name from com.pylonproducts.wifiwizard to wifiwizard.
<plugin name="wifiwizard" spec="0.2.11" />
This will fetch the plugin correctly until they fix the naming issue.

@danishin
Copy link

I was using forked version of wifiwizard to merge bug fixes. And the above didn't work for me because of it (?), I think.

So I just modified package.json and published my package at https://www.npmjs.com/package/com.danishin.wifiwizard. As the main repo doesn't seem to be maintained anymore.

Anyway, thanks for the note :)

@fouad3
Copy link

fouad3 commented Nov 29, 2018

the problem solved for me you need to run those commands as follow:
1- run npm uninstall com.pylonproducts.wifiwizard
2- run npm uninstall wifiwizard
3- remove "com.pylonproducts.wifiwizard": {} from cordova in package.json file
4- leave the plugin as it is in the config.xml file
5- run ionic cordova plugin add wifiwizard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants