title: Cordova trying to fetch plugin from repo instead of local plugin
body: <p>I'm trying to create a Fiori Client for iOS with the SMP SDK 3.O PL3.
  At some point it tries to fetch a plugin which doesn't exist:
      Fetching plugin "kapsel-plugin-inappbrowser" via npm</p>
  
  <p>I don't understand why. The plugin's source files are all there, just like the other plugins:
  <a href="https://i.stack.imgur.com/qNTer.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qNTer.png" alt="enter image description here"></a></p>
  
  <pre><code>$ cordova platform add ios --searchpath /Users/Pieter/SAP/MobileSDK3/KapselSDK/plugins
  Adding ios project...
  iOS project created with cordova-ios@3.9.1
  Installing "cordova-plugin-camera" for ios
  Installing "cordova-plugin-contacts" for ios
  Installing "cordova-plugin-device" for ios
  Installing "cordova-plugin-file" for ios
  Installing "cordova-plugin-geolocation" for ios
  Installing "cordova-plugin-media" for ios
  Installing "cordova-plugin-media-capture" for ios
  Installing "cordova-plugin-network-information" for ios
  Installing "cordova-plugin-splashscreen" for ios
  Installing "cordova-plugin-statusbar" for ios
  Installing "cordova-plugin-whitelist" for ios
  Installing "de.appplant.cordova.plugin.printer" for ios
  Installing "kapsel-plugin-corelibs" for ios
  Installing "kapsel-plugin-apppreferences" for ios
  Installing "kapsel-plugin-attachmentviewer" for ios
  Installing "kapsel-plugin-authproxy" for ios
  Fetching plugin "kapsel-plugin-inappbrowser" via npm
  Failed to install 'kapsel-plugin-authproxy':CordovaError: Failed to fetch plugin kapsel-plugin-inappbrowser via registry.
  Probably this is either a connection problem, or plugin spec is incorrect.
  Check your connection and plugin name/version/URL.
  Error: Registry returned 404 for GET on https://registry.npmjs.org/kapsel-plugin-inappbrowser
      at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/fetch.js:141:33
      at _rejected (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:797:24)
      at /usr/local/lib/node_modules/cordova/node_modules/q/q.js:823:30
      at Promise.when (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:1035:31)
      at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:741:41)
      at /usr/local/lib/node_modules/cordova/node_modules/q/q.js:557:44
      at flush (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:108:17)
      at process._tickCallback (node.js:355:11)
  Failed to install 'kapsel-plugin-attachmentviewer':CordovaError: Failed to fetch plugin kapsel-plugin-inappbrowser via registry.
  Probably this is either a connection problem, or plugin spec is incorrect.
  Check your connection and plugin name/version/URL.
  Error: Registry returned 404 for GET on https://registry.npmjs.org/kapsel-plugin-inappbrowser
      at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/fetch.js:141:33
      at _rejected (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:797:24)
      at /usr/local/lib/node_modules/cordova/node_modules/q/q.js:823:30
      at Promise.when (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:1035:31)
      at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:741:41)
      at /usr/local/lib/node_modules/cordova/node_modules/q/q.js:557:44
      at flush (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:108:17)
      at process._tickCallback (node.js:355:11)
  Failed to fetch plugin kapsel-plugin-inappbrowser via registry.
  Probably this is either a connection problem, or plugin spec is incorrect.
  Check your connection and plugin name/version/URL.
  Error: Registry returned 404 for GET on https://registry.npmjs.org/kapsel-plugin-inappbrowser
  </code></pre>
  
  <p>The plugin.xml:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!--
    Licensed to the Apache Software Foundation (ASF) under one
    or more contributor license agreements.  See the NOTICE file
    distributed with this work for additional information
    regarding copyright ownership.  The ASF licenses this file
    to you under the Apache License, Version 2.0 (the
    "License"); you may not use this file except in compliance
    with the License.  You may obtain a copy of the License at
  
      http://www.apache.org/licenses/LICENSE-2.0
  
    Unless required by applicable law or agreed to in writing,
    software distributed under the License is distributed on an
    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    KIND, either express or implied.  See the License for the
    specific language governing permissions and limitations
    under the License.
  --&gt;
  
  &lt;plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
             id="kapsel-plugin-inappbrowser"
        version="0.6.0-patched"&gt;
  
      &lt;name&gt;InAppBrowser&lt;/name&gt;
      &lt;description&gt;Cordova InAppBrowser Plugin&lt;/description&gt;
      &lt;license&gt;Apache 2.0&lt;/license&gt;
      &lt;keywords&gt;cordova,in,app,browser,inappbrowser&lt;/keywords&gt;
      &lt;repo&gt;https://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser.git&lt;/repo&gt;
      &lt;issue&gt;https://issues.apache.org/jira/browse/CB/component/12320641&lt;/issue&gt;
  
      &lt;engines&gt;
        &lt;engine name="cordova" version="&gt;=3.1.0" /&gt;&lt;!-- Needs cordova/urlutil --&gt;
      &lt;/engines&gt;
  
      &lt;!-- android --&gt;
      &lt;platform name="android"&gt;
          &lt;js-module src="www/inappbrowser.js" name="inappbrowser"&gt;
              &lt;clobbers target="window.open" /&gt;
          &lt;/js-module&gt;
          &lt;config-file target="res/xml/config.xml" parent="/*"&gt;
              &lt;feature name="InAppBrowser"&gt; 
                  &lt;param name="android-package" value="org.apache.cordova.inappbrowser.InAppBrowser"/&gt;
              &lt;/feature&gt;
          &lt;/config-file&gt;
  
          &lt;source-file src="src/android/InAppBrowser.java" target-dir="src/org/apache/cordova/inappbrowser" /&gt;
          &lt;source-file src="src/android/InAppBrowserDialog.java" target-dir="src/org/apache/cordova/inappbrowser" /&gt;
          &lt;source-file src="src/android/InAppChromeClient.java" target-dir="src/org/apache/cordova/inappbrowser" /&gt;
  
          &lt;!--  drawable src/android/resources --&gt;
          &lt;resource-file src="src/android/res/drawable-hdpi/ic_action_next_item.png" target="res/drawable-hdpi/ic_action_next_item.png" /&gt;
          &lt;resource-file src="src/android/res/drawable-mdpi/ic_action_next_item.png" target="res/drawable-mdpi/ic_action_next_item.png" /&gt;
          &lt;resource-file src="src/android/res/drawable-xhdpi/ic_action_next_item.png" target="res/drawable-xhdpi/ic_action_next_item.png" /&gt;
          &lt;resource-file src="src/android/res/drawable-xxhdpi/ic_action_next_item.png" target="res/drawable-xxhdpi/ic_action_next_item.png" /&gt;
  
          &lt;resource-file src="src/android/res/drawable-hdpi/ic_action_previous_item.png" target="res/drawable-hdpi/ic_action_previous_item.png" /&gt;
          &lt;resource-file src="src/android/res/drawable-mdpi/ic_action_previous_item.png" target="res/drawable-mdpi/ic_action_previous_item.png" /&gt;
          &lt;resource-file src="src/android/res/drawable-xhdpi/ic_action_previous_item.png" target="res/drawable-xhdpi/ic_action_previous_item.png" /&gt;
          &lt;resource-file src="src/android/res/drawable-xxhdpi/ic_action_previous_item.png" target="res/drawable-xxhdpi/ic_action_previous_item.png" /&gt;
  
          &lt;resource-file src="src/android/res/drawable-hdpi/ic_action_remove.png" target="res/drawable-hdpi/ic_action_remove.png" /&gt;
          &lt;resource-file src="src/android/res/drawable-mdpi/ic_action_remove.png" target="res/drawable-mdpi/ic_action_remove.png" /&gt;
          &lt;resource-file src="src/android/res/drawable-xhdpi/ic_action_remove.png" target="res/drawable-xhdpi/ic_action_remove.png" /&gt;
          &lt;resource-file src="src/android/res/drawable-xxhdpi/ic_action_remove.png" target="res/drawable-xxhdpi/ic_action_remove.png" /&gt;
  
      &lt;/platform&gt;
  
      &lt;!-- ios --&gt;
      &lt;platform name="ios"&gt;
          &lt;js-module src="www/inappbrowser.js" name="inappbrowser"&gt;
              &lt;clobbers target="window.open" /&gt;
          &lt;/js-module&gt;  
          &lt;config-file target="config.xml" parent="/*"&gt;
              &lt;feature name="InAppBrowser"&gt;
                  &lt;param name="ios-package" value="CDVInAppBrowser" /&gt; 
              &lt;/feature&gt;
          &lt;/config-file&gt;
  
          &lt;header-file src="src/ios/CDVInAppBrowser.h" /&gt;
          &lt;source-file src="src/ios/CDVInAppBrowser.m" /&gt;
  
          &lt;framework src="CoreGraphics.framework" /&gt;
      &lt;/platform&gt;
  
  
      &lt;!-- windows universal apps (Windows 8.1, Windows Phone 8.1, Windows 8.0) --&gt;
      &lt;platform name="windows"&gt;
          &lt;js-module src="www/inappbrowser.js" name="inappbrowser"&gt;
              &lt;clobbers target="window.open" /&gt;
          &lt;/js-module&gt;
          &lt;js-module src="src/windows/InAppBrowserProxy.js" name="InAppBrowserProxy"&gt;
              &lt;merges target="InAppBrowserProxy" /&gt;
          &lt;/js-module&gt;
      &lt;/platform&gt;
  
  &lt;/plugin&gt;
  </code></pre>
  
  <p>I have tried it with Cordova 5.2 and latest master 5.3.</p>