Unable to download Git plugin from Visual Studio 2015 - visual-studio-cordova

I am trying to download GIT plugin via URL : https://github.com/OSAMES/ionic-Select-Control.git
in Visual Studio 2015 (update 2 ) I opened config.xml (in designer), then in Plugins section, I clicked on Custom and selected Git option. Entered above URL and clicked Arrow button.
However, it is giving error as "Plugin download failed from URL: https://github.com/OSAMES/ionic-Select-Control.git"
The URL works in browser.
Any idea? There can't be proxy issue with VS 2015 update 2 as I was able to download another plugin yesterday.
Thank you

I just tested at the moment and I have not encountered any problem with bower install ionic-select-control --save
Have you made a npm init before launch bower ?
In fact this plugins is for Ionic not for Cordova and need also angularjs.
I do not think it is possible to adapt to Cordova.
The only solution would be to develop a specific plugin for Cordova.
Edit: I test on new Cordova project in vs2015U2. My solution if you not use command line is to edit bower.json, add ionic-select-control dependencies
and after in solution explorer, right click on dependencies and click restore packages in menu.
VisualStudio 2015 request npm.org to fill intelisence for auto completing and find packages names

You can install it by ID, like ionic-select-control.
But it is not a Cordova plugin, so just install it with bower. This window is for installing Cordova plugins only.

I was able to resolve this by adding .bowerrcc file to my solution. The file was added and edited to have proxy configuration. For example:
{
"directory": "www/lib",
"registry": "http://bower.herokuapp.com",
"proxy" : "http://xx.xx.xx.xx:8080",
"https-proxy" : "http://xx.xx.xx.xx:8080",
"strict-ssl" : false
}

Related

Firebase Ionic 4 plugin

I get the following error all the time:
Discovered plugin "cordova-plugin-firebase" in config.xml. Adding it to the project
Installing "cordova-plugin-firebase" for ios
Error during processing of action! Attempting to revert...
Failed to install 'cordova-plugin-firebase': CordovaError: Uh oh!
File already exists at destination "/Users/alexcarrascosalvador/Documents/Projects/RACE/race-sos/platforms/ios/RACE SOS/Resources/GoogleService-Info.plist" for resource file specified by plugin cordova-plugin-firebase in iOS platform
at install (/Users/alexcarrascosalvador/Documents/Projects/RACE/race-sos/platforms/ios/cordova/lib/plugman/pluginHandlers.js:64:23)
at ActionStack.process (/Users/alexcarrascosalvador/Documents/Projects/RACE/race-sos/platforms/ios/cordova/node_modules/cordova-common/src/ActionStack.js:56:25)
at PluginManager.doOperation (/Users/alexcarrascosalvador/Documents/Projects/RACE/race-sos/platforms/ios/cordova/node_modules/cordova-common/src/PluginManager.js:114:20)
at PluginManager.addPlugin (/Users/alexcarrascosalvador/Documents/Projects/RACE/race-sos/platforms/ios/cordova/node_modules/cordova-common/src/PluginManager.js:144:17)
at Api.addPlugin (/Users/alexcarrascosalvador/Documents/Projects/RACE/race-sos/platforms/ios/cordova/Api.js:234:10)
at handleInstall (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:594:10)
at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:357:28
at _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:854:54)
at /usr/local/lib/node_modules/cordova/node_modules/q/q.js:883:30
at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:816:13)
Failed to restore plugin "cordova-plugin-firebase" from config.xml. You might need to try adding it again. Error: Uh oh!
File already exists at destination "/Users/alexcarrascosalvador/Documents/Projects/RACE/race-sos/platforms/ios/RACE SOS/Resources/GoogleService-Info.plist" for resource file specified by plugin cordova-plugin-firebase in iOS platform
I found it impossible to fix this error. I put my plugins in order to install Firebase first, but I still get this error when I try to install the plugin in the iOS platform. I also removed the platform and added it again and I still get the error. I deleted the whole project and downloaded again, installed the dependencies and build it, but I still get the cordova-plugin-firebase error...
I had a chance to fix this issue and please follow the below steps.
Rename the file GoogleService-Info.plist in our root folder to GoogleService-Info.plistxx
Remove the file inside your platform/ios/AppName/Resources/GoogleService-Info.plist
Run the command ionic cordova plugin add cordova-plugin-firebase
Rename the file GoogleService-Info.plistxx in our root folder to GoogleService-Info.plist

Installing Cordova plugin to meteor project using a github tarball link

I'm trying to install a package to my meteor project using a repository in github.
The only way Meteor allow me to install it is using a "tarball" specific link like this:
https://github.com/Wizcorp/phonegap-facebook-plugin/tarball/d8b0f6935a7c6e586188bf85f9da88a1c160790b
Although, the package version referenced in the link is not the one I need (I got that link from an old support post).
Could someone explain me how to obtain that type of link (tarball) from this repository and version (0.12.0)?
https://github.com/Wizcorp/phonegap-facebook-plugin/releases/tag/v0.12.0
So far I have tried:
Copy the tar.gz download link of the right version and running:
meteor add cordova:com.phonegap.plugins.facebookconnect#https://github.com/aogilvie/phonegap-facebook-plugin/archive/0.6.0.tar.gz
Result: "Meteor requires either an exact version, a Git URL with a SHA
reference"
Installing it using the version number:
meteor add cordova:com.phonegap.plugins.facebookconnect#0.12.0
Result: I got "Package installed" but when run ios-device I got the error:
"Failed to fetch plugin com.phonegap.plugins.facebookconnect#0.12.0 via registry".
Downloading the zip file, unzip and put folder in packages folder.
Result: Is not working because is not a package.js inside the folder.
Thanks in advance
You are actually trying to add a Cordova plugin (meteor add cordova:...), not a Meteor package.
Therefore, your trial 3 (local package / plugin) needs a similar meteor add cordova:your-plugin-name#file://packages/folder-to-local-cordova-plugin instead of a meteor add package-name (which will look for a package.js file).
Trial 2 (version number) works only for published plugins.
You should stick with your trial 1 but you have to specify the commit hash (git endpoint + # + commit hash) instead of the tarball link:
meteor add cordova:com.phonegap.plugins.facebookconnect#https://github.com/Wizcorp/phonegap-facebook-plugin.git#c0f8da97a1d65397ada73e958dafed3aeef2e491
See Meteor Guide > Build > Mobile > Native features with Cordova plugins > Installing plugins > Installing a plugin from Git

gulp-inject not working in asp.net core project

So I've been working on a asp.net core project and trying to inject scripts using the gulp-inject package. but when I try to use the gulp-inject module in gulpfile.js it throws this error in task-runner window. what am I missing here?
gulp-inject in package.json
task-runner error
This is a known issue. You need to upgrade your version of NodeJS to v4.
To see your version, open a command prompt and run:
node --version
To upgrade, go to https://nodejs.org and find the downloads or look at How do I update node and npm on windows?
If you're using Visual Studio 2015, also check the version of NodeJS that it is using. Options > Projects and Solutions > External Web Tools shows the locations. From there either:
add C:\Program Files\nodejs as the new top entry, or
move the $(PATH) to the top if it is already up-to-date.

Plugins - Install Local Copy: Unable to parse plugin.xml

I'm having problems installing plugins with VS2015 Community + Cordova. I followed the instructions to install custom local and I get the error:
Visual Studio was unable to parse plugin.xml
Instructions to add local plugin copy: http://taco.visualstudio.com/en-us/docs/tips-and-workarounds-general-readme/#install-from-a-local-copy
I'm unable to install plugins with config.xml > Plugins > Core and I get the same error
Note: I recently update Node to v4.2.1. Adding plugins has worked great in the past with no problems.
Any ideas on how to fix or work around the problem?
Got it working, but not sure where the problem originates.
I'm was using Node v4.2.1 and Cordova 5.3.1
Solution was to update to Cordova 5.3.3
Failure to add plugin:
Changing Cordova version number:
Success adding plugin:

Cannot add package iron router for meteor on windows 8.1 pro

I installed meteor on windows from http://win.meteor.com/. I was trying to install iron router package for meteor on windows 8.1 by downloading following repositories
git clone https://github.com/tmeasday/meteor-router.git
After downloading i renamed the folder to iron-router. Then i downloaded other repositories
git clone https://github.com/tmeasday/meteor-page-js-ie-support.git
git clone https://github.com/tmeasday/meteor-HTML5-History-API.git
git clone https://github.com/EventedMind/blaze-layout.git
updated sub modules using git submodule update –-init for
meteor-HTML5-History-API
meteor-page-js-ie-support
when i execute meteor add iron-router i am getting following error
The problem is with win.meteor.com. As I instructed in my earlier answer, please install Meteor for Windows from https://github.com/meteor/meteor/wiki/Preview-of-Meteor-on-Windows.
ok after spending a lot of time, finally i was able to setup my meteor environment using vagrant ( still like to know if i can get everything working and can move on to build a full fledge application using pure 100% windows environment )
Now for folks out there who faced the same issue, just follow the steps in link mentioned below ( this really worked for me ). I was able to install iron router and bootstrap and tested bootstrap its working. No file sync issues till now. Routers are working as well. Now i am moving on to start building a full fledge application, if i see any issues further down the road i will updat this post.
https://gist.github.com/gabrieljenik/d926cbb90706d95abdee

Resources