Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin cannot install with Cordova 7 (latest Cordova Version) #28

Open
RonnySchleicher opened this issue May 16, 2017 · 17 comments
Open

Comments

@RonnySchleicher
Copy link

RonnySchleicher commented May 16, 2017

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

@die20
Copy link

die20 commented May 18, 2017

Its also an issue for Mac

@ohh2ahh
Copy link

ohh2ahh commented May 18, 2017

That's because package.json is missing. The PR #27 will fix this.

@die20
Copy link

die20 commented May 18, 2017

Yea I just came across that, when can we get the PR approved? No conflicts and has been sitting in limbo for 11 days...

@ibnclaudius
Copy link

Facing the same problem using Ionic.

Cordova CLI: 7.0.1
Ionic CLI: 3.1.2

@78lab
Copy link

78lab commented May 23, 2017

Facing the same problem using Ionic.

Cordova CLI: 7.0.1

@eeschiavo
Copy link

Please approve the PR

@rogiervandenberg
Copy link

I have the exact same issue, also tried reinstall of node, but that didn't work.

@jesuscmd
Copy link

jesuscmd commented Jun 1, 2017

the same, I work in Mac

Cordova CLI: 7.0.1
Ionic CLI: 3.1.2

@kodeine
Copy link

kodeine commented Jun 2, 2017

i dont think this repo is actively maintained.

@isanwenyu
Copy link

I have the same issue in Mac.
Cordova CLI: 7.0.1
It works perfect with cordova 6.
thx @RonnySchleicher

@jacquesdev
Copy link

I suggest we all start using this fork https://github.com/ibnclaudius/CordovaClipboard since it contains the fix

@mwoeber
Copy link

mwoeber commented Sep 13, 2017

@jacquesdev

I am currently having troubles installing this on -v 7.0.1, I am using the link you posted and not having any luck.

Error: Failed to fetch plugin https://github.com/ibnclaudius/CordovaClipboard via registry. Probably this is either a connection problem, or plugin spec is incorrect. Check your connection and plugin name/version/URL. Failed to get absolute path to installed module

If you could shed a little light on my problem I would be very happy.

@jacquesdev
Copy link

Hi @mwoeber, can you please advise the command you are using to install?

@stevesum
Copy link

stevesum commented Sep 14, 2017 via email

@mwoeber
Copy link

mwoeber commented Sep 14, 2017

@stevesum

thanks that fixed my issue!

@gianlucag
Copy link

gianlucag commented Oct 24, 2017

third time in a row I find cordova github projects with missing package.json. Go for this fork -> https://github.com/ibnclaudius/CordovaClipboard since it contains the fix

@Pratik525
Copy link

@stevesum

Thanks. It fixed my issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests