don / cordova-filechooser

Cordova Plugin that supplies a File Chooser
Other
97 stars 215 forks source link

Plugin is not supporting for Cordova@7.0.0 #30

Open Balaji-Gopal opened 7 years ago

Balaji-Gopal commented 7 years ago

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?

lasarvit commented 7 years ago

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

pixael commented 7 years ago

Same here.

luckylooke commented 7 years ago

You either need to downgrade cordova, or create package.json https://github.com/don/cordova-filechooser/issues/33#issuecomment-308203186

luckylooke commented 7 years ago

I have used repo https://github.com/ihadeed/cordova-filechooser mentioned in https://github.com/ionic-team/ionic-native/blob/master/src/%40ionic-native/plugins/file-chooser/index.ts

gpt3ch commented 7 years ago

@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 commented 7 years ago

@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 commented 6 years ago

λ 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 commented 6 years ago

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

mihirp1730 commented 6 years ago

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 commented 5 years ago

Install the plugin using ihadeed's repository instead:

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