devgeeks / VolumeSlider

PhoneGap / Cordova iOS plugin that allows you to add a native volume slider (MPVolumeView) to your app
16 stars 20 forks source link

cordova plugin add https://github.com/devgeeks/VolumeSlider.git fails #10

Open schumannd opened 7 years ago

schumannd commented 7 years ago

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

devgeeks commented 7 years ago

This plugin hasn't been updated in something like 3 years...

It probably needs updating somewhere :/

ncapito commented 7 years ago

@devgeeks add a package.json and it will fix it.

tomcatmwi commented 3 years ago

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 <tommy@devgeeks.org>",
  "license": "MIT",
  "bugs": {
    "url": "https://github.com/devgeeks/VolumeSlider/issues"
  },
  "homepage": "https://github.com/devgeeks/VolumeSlider"
}