Hitman666 / cordova-ios-voip-push

Register and receive VoIP push notifications in hybrid app projects with Cordova
MIT License
23 stars 28 forks source link

example: npm install fails after platform is added #6

Closed jQrgen closed 5 years ago

jQrgen commented 6 years ago

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
jQrgen commented 6 years ago

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