Plugin cannot install with Cordova 7 (latest Cordova Version)
See original GitHub issueEnvironment
- 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
Issue Analytics
- State:
- Created 6 years ago
- Reactions:12
- Comments:17
Top Results From Across the Web
Platforms and Plugins Version Management - Apache Cordova
If you run the command cordova platform add android with no <version | folder | git_url> specified, the platform android@7.1.4 will be retrieved...
Read more >I can't install cordova plugins - Stack Overflow
You should update your Cordova version and cordova-android, remove the plugin and clean its installed dependencies, to have then a new clean ...
Read more >Cordova instalation problem - Framework7 Forum
I always get this error while installing plugins, while my internet connection is working. I just run “npm install” commands twice and never...
Read more >Installing Cordova 7 Mobile Platforms and Plugins - YouTube
How to install platforms and plugins for your Cordova projects.Also covered are the requirements for installing the platforms and compiling ...
Read more >Cordova Plugin error while generating mobile app | OutSystems
MABS 7.0 require respective cordova version complied projects i.e the plugins used. An easier approach would be updating all those plugins which ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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