2

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 1

1

You have to use it like this:

https://www.github.com/don/cordova-filechooser.git --save

I have tested it and working fine.

enter image description here

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>
Sign up to request clarification or add additional context in comments.

10 Comments

how that worked for me then? do you have any firewall restrictions or something like that?
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.
then you have to follow this article first:ionicframework.com/docs/v2/intro/installation
i had downloaded and installed but facing same error
tq bro after restarting my system i am able to install
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.