Could not load Cordova plugin error in Visual Studio

I am trying to install a plugin for my cordova application in Visual Studio 2015 with its error:

Couldn't download plugin.

If I tried to install it using the CLI error, follow these steps:

Current Directory is not cordova based project
+4
source share
5 answers
  • run the following command to install cordova globally

    npm install -g cordova

  • Then create a new cordova project using

    cordova start project_name

  • Go to the directory and install the plugin using

    cordova plugin add org.apache.cordova.file

  • Copy the installed org.apache.cordova.file folder and paste it into the plugins folder in the Visual Studio solution (create the plugins folder in the root if it does not exist).

Update configuration file

<vs:plugin name="org.apache.cordova.file" version="1.3.1" />
  1. Build a project

OR

Just add the following lines to Config.xml.

<vs:features>
    <vs:feature>https://github.com/phonegap-build/PushPlugin.git</vs:feature>
</vs:features>

bld/debug/plugins

+4

, , :

:

> npm install -g cordova
> mkdir cordovaTemp
> cd cordovaTemp
> cordova create .
> cordova plugin add org.apache.cordova.device

cordovaTemp/plugins project/plugins, Visual Studio:

  • config.xml
  • >
  • ..., .

, .

0

. git config.xml, .

, , npm , git , git.

, - git:

git config --global http.proxy http://username:password@my.proxy.com:1234
git config --global https.proxy http://username:password@my.proxy.com:1234
0

Visual Studio 2013 Update 4 Cordova. , , , HTTP_PROXY HTTPS_PROXY.

HTTP_PROXY = http://username:password@proxyhost:proxyport
HTTPS_PROXY = http://username:password@proxyhost:proxyport
: - .

visual studio, npm git .

0

All Articles