Skip to content
New issue

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

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

Already on GitHub? # to your account

Plugin uses two different name #129

Open
dland512 opened this issue Feb 26, 2019 · 1 comment
Open

Plugin uses two different name #129

dland512 opened this issue Feb 26, 2019 · 1 comment

Comments

@dland512
Copy link

I'm seeing weird things going on with the installation process.

I add the plugin:

$ cordova plugin add wifiwizard
Saved plugin info for "com.pylonproducts.wifiwizard" to config.xml

It works but why is it adding it as com.pylonproducts.wifiwizard rather than wifiwizard? Looking at config.xml I see it called <plugin name="com.pylonproducts.wifiwizard" spec="~0.2.11" />. Looking at package.json I see two names used for it:

"dependencies": {
    "wifiwizard": "~0.2.11",
}
...
"cordova": {
    "plugins": {
      "com.pylonproducts.wifiwizard": {}
    }
}

Now if I run cordova prepare android a second entry of com.pylonproducts.wifiwizard shows up in the dependencies.

"dependencies": {
    "wifiwizard": "~0.2.11",
    "com.pylonproducts.wifiwizard": "~0.2.11"
},

Now if I try to run npm i, as my build system is doing, I get an error:

$ npm i
npm ERR! code E404
npm ERR! 404 Not Found: com.pylonproducts.wifiwizard@~0.2.11

Furthermore, if you try to remove the package you get an error:

$ cordova plugin rm wifiwizard
Error: Plugin "wifiwizard" is not present in the project. See `cordova plugin list`.

If you use npm un com.pylonproducts.wifiwizard you get the same thing.

What's going on here?

@Monarch73
Copy link

Hi ,

I ran into the same problem. I got the build command to work by removing the "com.pylonproduct."-prefix from the package json.

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

No branches or pull requests

2 participants