HMS-Core / hms-cordova-plugin

This repo contains all of Cordova HMS plugins.
https://developer.huawei.com/consumer/en/doc/overview/HMS-Core-Plugin?ha_source=hms1
Apache License 2.0
88 stars 40 forks source link

All plugins re-installation is broken due bad ID name in plugin.xml file #173

Open phyr0s opened 3 months ago

phyr0s commented 3 months ago

Description

When install plugin and remove the platforms/plugins folder and want to reinstall from package.json the reinstall fails

The problem is because npm search the @hmscore/cordova-plugin-hms-availability and the name of the plugin id is cordova-plugin-hms-availability so when you install in the package.json in the cordova plugin object it added as cordova-plugin-hms-availability

Force change @hmscore/cordova-plugin-hms-availability locally it didn't fix the issue because next reinstall cordova-plugin-hms-availability will appear again in the cordova.plugins object in the package json.

Basically there is not cordova-plugin-hms-availability package in NPM repository and fails because the name of repo is @hmscore/cordova-plugin-hms-availability

Happen with all plugins, all version of cordova, ionic etc....