Claus Nielsen
Claus Nielsen

Reputation: 15

VS 2015 RC - Trying to fetch local plugin from remote registry

I have a local plugin, which I'm trying to install to a Cordova project. Adding it through VS works like a charm, but when I'm building it, plugman tries to retrieve the plugin from the registry (npm http GET http://registry.cordova.io/[Plugin]/[Version]) and the build fails, because this plugin only exist locally.

Anyone got clue, how to make plugman fetch the plugin from the local path?

Upvotes: 0

Views: 350

Answers (1)

Chuck Lantz
Chuck Lantz

Reputation: 1440

A significant changed that occurred with Cordova 5.0.0 is that plugins are now starting to move to npm. Unfortunately Cordova 4.3.1 and below do not support npm based plugins.

As a result, what you may be running into is this situation where the plugin references something in npm. This article has tips and workarounds for dealing with this problem when using Cordova 4.3.1 or below.

Note that you can use Cordova 5.0.0+ with Visual Studio 2015, but 5.0.0 has a known problem with Ripple along with an Android security issue that has been resolved in Cordova 5.1.1. I'd use Cordova 5.1.1 instead of 5.0.0. Note that VS will still build with Ant instead of Gradle in 2015 RC and some plugins may require Gradle. (This will be resolved in an upcoming update.)

Upvotes: 0

Related Questions