don/cordova-filechooser

Can't install with Cordova CLI

Opened this issue · 7 comments

When I tried to install this plugin using
$ cordova plugin add http://github.com/don/cordova-filechooser.git
I got the following errors:

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

+1 it doesn't work with cordova 7.0.0

Exactly the same error, any hotfixes?
Error trace
`Error: Failed to fetch plugin https://github.com/don/cordova-filechooser.git via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: npm: Command failed with exit code 235 Error output:
npm ERR! addLocal Could not install /tmp/npm-27866-4ec79b26/git-cache-f9bf63a0/c97ffb70a339ed2fa20eec5d7a7344a14cf268fd
npm ERR! Linux 4.10.0-22-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "https://github.com/don/cordova-filechooser.git" "--save"
npm ERR! node v7.10.0
npm ERR! npm v4.2.0
npm ERR! code EISDIR
npm ERR! errno -21
npm ERR! syscall read

npm ERR! eisdir EISDIR: illegal operation on a directory, read
npm ERR! eisdir This is most likely not a problem with npm itself
npm ERR! eisdir and is related to npm not being able to find a package.json in
npm ERR! eisdir a package you are trying to install.

npm ERR! Please include the following file with any support request:
npm ERR! /home/borja/.npm/_logs/2017-06-13T08_58_53_974Z-debug.log
`

+1

+1

//downgrade first
sudo npm install cordova@5.3.1

//install
sudo cordova plugin add http://github.com/don/cordova-filechooser.git

//go back to latest
sudo npm install cordova