Hitman666/cordova-ios-voip-push

example: npm install fails after platform is added

Closed this issue · 1 comments

Npm install fails after platform is added because the plugin somehow adds the following to package.json:

{
  "name": "plugintest",
  "version": "1.1.1",
  "description": "pluginTest: An Ionic project",
  "dependencies": {
   ...
    "com.nikola-breznjak.voippush": "~1.0.2" // Removing this line fixes the error.
  },
  ...
}
$ npm install && bower install
npm ERR! code E404
npm ERR! 404 Not Found: com.nikola-breznjak.voippush@~1.0.2

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/jqrgen/.npm/_logs/2018-01-02T14_42_48_783Z-debug.log

$ cordova platform ls
Installed platforms:
  ios 4.5.4
Available platforms: 
  android ~6.3.0
  blackberry10 ~3.8.0 (deprecated)
  browser ~5.0.0
  osx ~4.0.1
  ubuntu ~4.3.4 (deprecated)
  webos ~3.7.0
  windows ~5.0.0
  www ^3.12.0

The following comman adds "com.nikola-breznjak.voippush" to package.json

$ ionic cordova plugin add https://github.com/Hitman666/cordova-ios-voip-push.git
> cordova plugin add https://github.com/Hitman666/cordova-ios-voip-push.git --save
Installing "com.nikola-breznjak.voippush" for ios

Adding com.nikola-breznjak.voippush to package.json

Saved plugin info for "com.nikola-breznjak.voippush" to config.xml