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.