I am new to the ionic 2 and I wanted to upload the image using firebase database. By following http://tphangout.com/ionic-2-serving-images-with-firebase-storage/ this tutorial that I am doing. When I added the plugin ionic plugin add http://github.com/don/cordova-filechooser.git I am getting an error.
1 Answer
You have to use it like this:
https://www.github.com/don/cordova-filechooser.git --save
I have tested it and working fine.
Here is the config.xml
<?xml version='1.0' encoding='utf-8'?>
<widget id="com.ionicframework.myfirstapp414454" version="0.0.1">
<plugin name="com.megster.cordova.FileChooser" spec="https://www.github.com/don/cordova-filechooser.git" />
</widget>
10 Comments
Sampath
how that worked for me then? do you have any firewall restrictions or something like that?
Garre Saikrishna
I am tried what you had tried it is getting error like this Error: Failed to fetch plugin github.com/don/cordova-filechooser.git via git. Either there is a connection problems, or plugin spec is incorrect: Error: "git" command line tool is not installed: make sure it is accessi ble on your PATH.
Sampath
then you have to follow this article first:ionicframework.com/docs/v2/intro/installation
Garre Saikrishna
i had downloaded and installed but facing same error
Garre Saikrishna
tq bro after restarting my system i am able to install
|
