question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Plugin cannot install with Cordova 7 (latest Cordova Version)

See original GitHub issue

Environment

  • OS: Windows 10 64 Bit - lastest OS Update
  • Node / npm image

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

image

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:open
  • Created 6 years ago
  • Reactions:12
  • Comments:17

github_iconTop GitHub Comments

17reactions
stevesumcommented, Sep 14, 2017

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:

Hi @mwoeber https://github.com/mwoeber, can you please advise the command you are using to install?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/VersoSolutions/CordovaClipboard/issues/28#issuecomment-329255636, or mute the thread https://github.com/notifications/unsubscribe-auth/ACQrUMNaB67IF8sRcbzW-EZbfBr-B7Gxks5siB5tgaJpZM4NclFs .

5reactions
eeschiavocommented, May 26, 2017

Please approve the PR

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found