title: Failed to get absolute path to installed module
body: <p>I'm with a problem that I believe that is something related to my package.json or the version of the cordova platform.</p>
  
  <p>When I try to run an <code>ionic state restore</code> it returns the following output:</p>
  
  <pre><code>Attempting to restore your Ionic application from package.json
  
  Restoring Platforms
  
  cordova platform add ios
  cordova platform add android
  
  Restore platforms is complete
  
  Restoring Plugins
  
  cordova plugin add cordova-plugin-whitelist
  cordova plugin add cordova-plugin-console
  cordova plugin add cordova-plugin-statusbar
  cordova plugin add cordova-plugin-device
  cordova plugin add cordova-plugin-splashscreen
  cordova plugin add ionic-plugin-keyboard
  cordova plugin add cordova-plugin-network-information
  cordova plugin add cordova-plugin-file
  cordova plugin add cordova-plugin-compat
  cordova plugin add cordova-plugin-media
  cordova plugin add https://github.com/AubreyHewes/cordova-background-audio.git
  Caught exception:
   undefined
  
  Mind letting us know? https://github.com/driftyco/ionic-cli/issues
  </code></pre>
  
  <p>And when I try to run the command that failed (<code>cordova plugin add https://github.com/AubreyHewes/cordova-background-audio.git</code>), it returns the following error:</p>
  
  <pre><code>Error: Failed to fetch plugin git+https://github.com/AubreyHewes/cordova-background-audio.git via registry.
  Probably this is either a connection problem, or plugin spec is incorrect.
  Check your connection and plugin name/version/URL.
  Failed to get absolute path to installed module
  </code></pre>
  
  <p>I don't understand why it says that is a connection problem, because my internet connection is working just fine. Also the URL of the plugin is right too.</p>
  
  <p>My environment info:</p>
  
  <pre><code>Cordova CLI: 7.0.0
  Ionic CLI Version: 2.2.3
  Ionic App Lib Version: 2.2.1
  ios-deploy version: 1.9.0
  ios-sim version: 5.0.10
  OS: OS X El Capitan
  Node Version: v7.0.0
  Xcode version: Xcode 8.1 Build version 8B62
  </code></pre>
  
  <p>I'm pulling my hairs out for this problem. Do you have a clue of what can be causing this?</p>
  
  <p>My package.json content:</p>
  
  <pre><code>{
    "name": "paranaiba-app",
    "version": "1.1.1",
    "description": "paranaiba-app: An Ionic project",
    "dependencies": {
      "cordova-android": "^6.2.3",
      "cordova-ios": "^4.4.0",
      "cordova-plugin-compat": "~1.1.0",
      "cordova-plugin-console": "~1.0.6",
      "cordova-plugin-device": "~1.1.5",
      "cordova-plugin-file": "~4.3.2",
      "cordova-plugin-media": "~2.4.1",
      "cordova-plugin-music-controls": "git+https://github.com/homerours/cordova-music-controls-plugin.git",
      "cordova-plugin-network-information": "~1.3.2",
      "cordova-plugin-splashscreen": "~4.0.2",
      "cordova-plugin-statusbar": "~2.2.2",
      "cordova-plugin-whitelist": "~1.3.2",
      "gulp": "^3.5.6",
      "gulp-concat": "^2.2.0",
      "gulp-minify-css": "^0.3.0",
      "gulp-rename": "^1.2.0",
      "gulp-sass": "^2.0.4",
      "ionic-plugin-keyboard": "~2.2.1",
      "nl.kingsquare.cordova.background-audio": "git+https://github.com/AubreyHewes/cordova-background-audio.git",
      "phonegap-plugin-push": "~1.8.4"
    },
    "devDependencies": {
      "bower": "^1.3.3",
      "gulp-util": "^2.2.14",
      "shelljs": "^0.3.0"
    },
    "cordovaPlugins": [
      "cordova-plugin-whitelist",
      "cordova-plugin-console",
      "cordova-plugin-statusbar",
      "cordova-plugin-device",
      "cordova-plugin-splashscreen",
      "ionic-plugin-keyboard",
      "cordova-plugin-network-information",
      "cordova-plugin-file",
      "cordova-plugin-compat",
      "cordova-plugin-media",
      {
        "locator": "https://github.com/AubreyHewes/cordova-background-audio.git",
        "id": "nl.kingsquare.cordova.background-audio"
      },
      {
        "locator": "https://github.com/homerours/cordova-music-controls-plugin",
        "id": "cordova-plugin-music-controls"
      }
    ],
    "cordovaPlatforms": [
      {
        "platform": "ios",
        "version": "",
        "locator": "ios"
      },
      {
        "platform": "android",
        "version": "",
        "locator": "android"
      }
    ],
    "cordova": {
      "platforms": [
        "android",
        "ios"
      ],
      "plugins": {
        "phonegap-plugin-push": {
          "SENDER_ID": "XXXX"
        },
        "cordova-plugin-whitelist": {},
        "cordova-plugin-console": {},
        "cordova-plugin-statusbar": {},
        "cordova-plugin-device": {},
        "cordova-plugin-splashscreen": {},
        "ionic-plugin-keyboard": {},
        "cordova-plugin-network-information": {},
        "cordova-plugin-file": {},
        "cordova-plugin-compat": {},
        "cordova-plugin-media": {},
        "nl.kingsquare.cordova.background-audio": {},
        "cordova-plugin-music-controls": {}
      }
    }
  }
  </code></pre>
  
  <p>Thank you!</p>