VolumeSlider
VolumeSlider copied to clipboard
cordova plugin add https://github.com/devgeeks/VolumeSlider.git fails
I am using npm version 5.0.3 and cordova version 7.0.1
This is the error I get when executing cordova plugin add https://github.com/devgeeks/VolumeSlider.git:
Error: Failed to fetch plugin https://github.com/devgeeks/VolumeSlider.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 1 Error output:
npm ERR! cb() never called!
npm ERR! This is an error with npm itself. Please report this error at:
npm ERR! <https://github.com/npm/npm/issues>
Other plugins install just fine
This plugin hasn't been updated in something like 3 years...
It probably needs updating somewhere :/
@devgeeks add a package.json and it will fix it.
Here's the package.json I took the liberty to create. Clone the repo, add it, then you can install it. Just use the path to the cloned plugin after cordova add plugin ....
{
"name": "cordova-volume-slider",
"version": "0.0.1",
"description": "Volume slider",
"cordova": {
"id": "cordova-volume-slider",
"platforms": [
"android"
]
},
"repository": {
"type": "git",
"url": "git+https://github.com/devgeeks/VolumeSlider"
},
"keywords": [
"Volume",
"ecosystem:cordova",
"cordova-android"
],
"engines": [
{
"name": "cordova",
"version": ">=3.0.0"
}
],
"author": "Tommy-Carlos Williams <[email protected]>",
"license": "MIT",
"bugs": {
"url": "https://github.com/devgeeks/VolumeSlider/issues"
},
"homepage": "https://github.com/devgeeks/VolumeSlider"
}