CordovaClipboard: Plugin cannot install with Cordova 7 (latest Cordova Version)
Environment
- OS: Windows 10 64 Bit - lastest OS Update
- Node / npm

Steps to reproduce
run follow script to create a new cordova android app. The only plugin is the CordovaClipboard plugin.
call npm uninstall -g cordova
call npm install -g cordova@latest
call cordova create cordova_android de.test.test Test
cd cordova_android
call cordova platform add android
call cordova plugin add https://github.com/VersoSolutions/CordovaClipboard.git
call cordova plugin ls
During the installation follow error occur

Error Message
C:\Test\cordova_android>call cordova plugin add https://github.com/VersoSolutions/CordovaClipboard.git
Error: Failed to fetch plugin https://github.com/VersoSolutions/CordovaClipboard.git 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 4294963228 Error output:
npm ERR! addLocal Could not install C:\Users\RSCHLE~1\AppData\Local\Temp\npm-15004-95f15c54\git-cache-06e71f4f\03fe48b62411cbff22229ca13cc3ac8b282f7945
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "https://github.com/VersoSolutions/CordovaClipboard.git" "--save"
npm ERR! node v6.9.5
npm ERR! npm v3.10.10
npm ERR! code EISDIR
npm ERR! errno -4068
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! C:\Test\cordova_android\node_modules\npm-debug.log
❗️ ❗️ ❗️ Important NOTE ❗️ ❗️ ❗️
If I change the script to`
call npm install -g cordova@6
it works fine. ➡️ with cordova 6 everything works
About this issue
- Original URL
- State: open
- Created 7 years ago
- Reactions: 12
- Comments: 17
use: cordova plugin add … --nofetch to install the plugins in Cordova 7 as it is defined in the cordova 7 documentation https://cordova.apache.org/news/2017/05/04/cordova-7.html
2017-09-13 20:26 GMT+02:00 Jacques de Villiers notifications@github.com:
Please approve the PR
That’s because
package.jsonis missing. The PR https://github.com/VersoSolutions/CordovaClipboard/pull/27 will fix this.Its also an issue for Mac
I suggest we all start using this fork https://github.com/ibnclaudius/CordovaClipboard since it contains the fix
Yea I just came across that, when can we get the PR approved? No conflicts and has been sitting in limbo for 11 days…
I have the exact same issue, also tried reinstall of node, but that didn’t work.
Facing the same problem using Ionic.
Cordova CLI: 7.0.1
Facing the same problem using Ionic.
Cordova CLI: 7.0.1 Ionic CLI: 3.1.2