Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin is not supporting for [email protected] #30

Open
Balaji-Gopal opened this issue May 12, 2017 · 10 comments
Open

Plugin is not supporting for [email protected] #30

Balaji-Gopal opened this issue May 12, 2017 · 10 comments

Comments

@Balaji-Gopal
Copy link

Error: Failed to fetch plugin http://github.com/don/cordova-filechooser.git1 via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.

System Info:
ordova CLI: 7.0.0
Ionic Framework Version: 2.0.0-rc.3
Ionic CLI Version: 2.2.3
Ionic App Lib Version: 2.2.1
Ionic App Scripts Version: 1.3.7
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 10
Node Version: v6.10.2
Xcode version: Not installed

https://forum.ionicframework.com/t/can-not-install-file-chooser-plugin/89244

If I downgrade the Cordova to 6.5.0 it works fine, Why is that so?

@root-io root-io mentioned this issue May 17, 2017
@lasarvit
Copy link

lasarvit commented Jun 5, 2017

I'm still facing this issue. Is there any solution or work around for it?

@pixael
Copy link

pixael commented Jun 6, 2017

Same here.

@luckylooke
Copy link

You either need to downgrade cordova, or create package.json #33 (comment)

@gpt3ch
Copy link

gpt3ch commented Jun 18, 2017

@luckylooke when i try to use that repo u mention i get error as follows:

W
> cordova plugin add https://github.com/ihadeed/cordova-filechooser --save
✖ Running command - failed!

[ERROR] Cordova encountered an error.
        You may get more insight by running the Cordova command above directly.

[ERROR] An error occurred while running cordova plugin add https://github.com/ihadeed/cordova-filechooser --save
        (exit code 1):

        Error: Failed to fetch plugin https://github.com/ihadeed/cordova-filechooser via registry.
        Probably this is either a connection problem, or plugin spec is incorrect.
        Check your connection and plugin name/version/URL.
        Error: cmd: Command failed with exit code 1 Error output:
        npm ERR! git clone
        C:\Users\ghanendra\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-ihadeed-cordova-filechooser-gi
t-a6d2e75b
        C:\Users\GHANEN~1\AppData\Local\Temp\npm-5740-098168c5\git-cache-a7b9093a\5ac369d9282fd3dc4c0649802a39d82c2eb
6a1b7:
        Cloning into
        'C:\Users\GHANEN~1\AppData\Local\Temp\npm-5740-098168c5\git-cache-a7b9093a\5ac369d9282fd3dc4c0649802a39d82c2e
b6a1b7'...
        npm ERR! git clone
        C:\Users\ghanendra\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-ihadeed-cordova-filechooser-gi
t-a6d2e75b
        C:\Users\GHANEN~1\AppData\Local\Temp\npm-5740-098168c5\git-cache-a7b9093a\5ac369d9282fd3dc4c0649802a39d82c2eb
6a1b7:
        error: cannot spawn sh: No such file or directory
        npm ERR! git clone
        C:\Users\ghanendra\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-ihadeed-cordova-filechooser-gi
t-a6d2e75b
        C:\Users\GHANEN~1\AppData\Local\Temp\npm-5740-098168c5\git-cache-a7b9093a\5ac369d9282fd3dc4c0649802a39d82c2eb
6a1b7:
        fatal: unable to fork
npm ERR! git clone
        C:\Users\ghanendra\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-ihadeed-cordova-filechooser-gi
t-a6d2e75b
        C:\Users\GHANEN~1\AppData\Local\Temp\npm-5740-098168c5\git-cache-a7b9093a\5ac369d9282fd3dc4c0649802a39d82c2eb
6a1b7:

        npm ERR! Windows_NT 6.3.9600
        npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program
        Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "https://github.com/ihadeed/cordova-filechooser"

        "--save"
        npm ERR! node v6.10.0
        npm ERR! npm  v3.10.10
        npm ERR! code 128

        npm ERR! Command failed: git -c core.longpaths=true clone
        C:\Users\ghanendra\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-ihadeed-cordova-filechooser-gi
t-a6d2e75b
        C:\Users\GHANEN~1\AppData\Local\Temp\npm-5740-098168c5\git-cache-a7b9093a\5ac369d9282fd3dc4c0649802a39d82c2eb
6a1b7
        npm ERR! Cloning into
        'C:\Users\GHANEN~1\AppData\Local\Temp\npm-5740-098168c5\git-cache-a7b9093a\5ac369d9282fd3dc4c0649802a39d82c2e
b6a1b7'...
        npm ERR! error: cannot spawn sh: No such file or directory
        npm ERR! fatal: unable to fork
        npm ERR!
        npm ERR!
        npm ERR! If you need help, you may report this error at:
        npm ERR!     <https://github.com/npm/npm/issues>`
```

Can u guide me how to install it? I dont want to mess up with cordova version as i spent this whole day getting my app to build on my mobile :(

@luckylooke
Copy link

@ghanendrapiplani my fault, I mismatched projects, I was testing it on project with cordova v6.5.x and that was why it was working... now I have tested on project with cordova v7.x and I can comfirm the error. So I have created new fork and install have ran without error, but didnt test the app yet. Perhaps during this week. I will let know then.

@hichamrbib
Copy link

λ ionic cordova plugin add cordova-plugin-filechooser
× cordova plugin add cordova-plugin-filechooser --save - failed!
[ERROR] An error occurred while running cordova plugin add cordova-plugin-filechooser --save (exit code 1):

    Error: Failed to fetch plugin file:node_modules/cordova-plugin-filechooser via registry.
    Probably this is either a connection problem, or plugin spec is incorrect.
    Check your connection and plugin name/version/URL.
    Error: cmd: Command failed with exit code 1 Error output:
    npm ERR! code ENOLOCAL
    npm ERR! Could not install from "node_modules\cordova-plugin-filechooser" as it does not contain a package.json
    file.

    npm ERR! A complete log of this run can be found in:
    npm ERR!     C:\Users\Hicham\AppData\Roaming\npm-cache\_logs\2017-08-15T14_51_41_554Z-debug.log

@marutifh
Copy link

marutifh commented Dec 18, 2017

@don
👎 No updates!? Looks like we need to find alternative for this.

@mihirp1730
Copy link

mihirp1730 commented Jan 8, 2018

Fail to get the response with file choose, it shows the name of the chosen file but doesn't console and not get the file.

this.fileChooser.open().then(uri =>{
 console.log(uri);
});

guide me for getting it.

@aicos
Copy link

aicos commented Dec 7, 2018

Install the plugin using ihadeed's repository instead:

cordova plugin add http://github.com/ihadeed/cordova-filechooser.git

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants