When I try to install Cordova native Clipboard always fails.
As mentioned in the documentation I run:
ionic cordova plugin add https://github.com/VersoSolutions/CordovaClipboard.git
And always get the same error:
Error: Failed to fetch plugin https://github.com/VersoSolutions/CordovaClipboard 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 /var/folders/27/vl4t9s8x5cn2t9nkr3ffl04c0000gn/T/npm-1420-c7f639b3/git-cache-dfad5329/03fe48b62411cbff22229ca13cc3ac8b282f7945
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.
I’m working with Ionic 3.2.0, by the way, in version 2 I didnt have problems with this plugin, but I updated Ionic and I couldnt install it any more.
I believe that Ionic CLI v3 doesn’t currently support installing from a git repo. (I could be wrong on this)
I’d try running it without the .git at the end, i.e.
ionic cordova plugin add https://github.com/VersoSolutions/CordovaClipboard
I also got this same error today. I tried running without .git at the end, but it doesn’t work.
There is a issue related to that in the plugin’s official git repo: https://github.com/VersoSolutions/CordovaClipboard/issues/28
It looks like the problem only happens in the last Cordova CLI (7)
[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/VersoSolutions/CordovaClipboard --save (exit code 1):
Error: Failed to fetch plugin https://github.com/VersoSolutions/CordovaClipboard 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-4855-b4818419/git-cache-b10d4fa2/03fe48b62411cbff22229ca13cc3ac8b282f7945
npm ERR! Linux 4.8.0-52-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "https://github.com/VersoSolutions/CordovaClipboard" "--save"
npm ERR! node v6.10.3
npm ERR! npm v3.10.10
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/isaac/Apps/AcademicoApp/node_modules/npm-debug.log