I use cordova-plugin-ble-central that has some issues with Bluetooth Permissions on Android, so they develope a branch to solve this that you can install by:
UserError: Error: CordovaError: Failed to fetch plugin cordova-plugin-splashscreen@6.0.1 via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
CordovaError: Error: Command failed with exit code 1: npm install cordova-plugin-splashscreen@6.0.1 --save-dev
npm ERR! code ETARGET
npm ERR! notarget No matching version found for cordova-plugin-bluetooth-serial@1.7.0-slim.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2023-07-26T18_35_42_345Z-debug-0.log
Discovered plugin "cordova-plugin-bluetooth-serial". Adding it to the project
Failed to restore plugin "cordova-plugin-bluetooth-serial". You might need to try adding it again. Error: CordovaError: Failed to fetch plugin cordova-plugin-bluetooth-serial@1.7.0-slim via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
CordovaError: Error: Command failed with exit code 1: npm install cordova-plugin-bluetooth-serial@1.7.0-slim --save-dev
npm ERR! code ETARGET
npm ERR! notarget No matching version found for cordova-plugin-bluetooth-serial@1.7.0-slim.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2023-07-26T18_35_43_938Z-debug-0.log
Discovered plugin "cordova-plugin-androidx-adapter". Adding it to the project
Failed to restore plugin "cordova-plugin-androidx-adapter". You might need to try adding it again. Error: CordovaError: Failed to fetch plugin cordova-plugin-androidx-adapter via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
CordovaError: Error: Command failed with exit code 1: npm install cordova-plugin-androidx-adapter --save-dev
npm ERR! code ETARGET
npm ERR! notarget No matching version found for cordova-plugin-bluetooth-serial@1.7.0-slim.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2023-07-26T18_35_45_558Z-debug-0.log
Discovered plugin "cordova-plugin-x-socialsharing-android12". Adding it to the project
Failed to restore plugin "cordova-plugin-x-socialsharing-android12". You might need to try adding it again. Error: CordovaError: Failed to fetch plugin cordova-plugin-x-socialsharing-android12 via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
CordovaError: Error: Command failed with exit code 1: npm install cordova-plugin-x-socialsharing-android12 --save-dev
npm ERR! code ETARGET
npm ERR! notarget No matching version found for cordova-plugin-bluetooth-serial@1.7.0-slim.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2023-07-26T18_35_47_213Z-debug-0.lo
This could be caused by a problem with a different plugin.