cordova-plugin-videoplayer icon indicating copy to clipboard operation
cordova-plugin-videoplayer copied to clipboard

Failed to restore plugin

Open netoolii opened this issue 8 years ago • 15 comments
trafficstars

When i try install this plugin, this error appear:

Failed to restore plugin "com.moust.cordova.videoplayer" from config.xml. You might need to try adding it again. Error: Failed to fetch plugin com.moust.cordova.videoplayer@https://github.com/moust/cordova-plugin-videoplayer 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

Can you help me ?

info:

node : v6.10.3 cordova: 7.0.1 ionic: 3.2.0 OS: MACOSX

netoolii avatar May 26 '17 01:05 netoolii

+1 Experience the same issue

shopen21 avatar Jun 03 '17 12:06 shopen21

Same issue

henryguyu avatar Jul 09 '17 08:07 henryguyu

I published the plugin on NPM repository to be able to install it again with Cordova cli. However I was forced to change the name of the plugin due to an other existing project on NPM with the same name. So you can now install it again with cordova plugin add cordova-plugin-video-player command.

moust avatar Jul 11 '17 17:07 moust

Just tried... defs not a connection error.

cordova plugin add cordova-plugin-video-player codeError: Failed to fetch plugin git+https://github.com/moust/cordova-plugin-videoplayer.git 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

Node: v6.10.3 Cordova: 7.0.1 Ionic: 2.2.3 OS: Mac Sierra

jmtech-online avatar Jul 16 '17 22:07 jmtech-online

Did you try to remove plugin from node_modules directory and execute npm cache clear before reinstall it ?

moust avatar Jul 17 '17 08:07 moust

Thanks @moust that works.

ZalakainTheOne avatar Jul 31 '17 13:07 ZalakainTheOne

I removed the plugin from node_modules directory, executed npm cache clear and tried to reinstall it.

I get:

"Error: Failed to fetch plugin git+https://github.com/moust/cordova-plugin-videoplayer.git 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"

Any suggestion?

carponte avatar Aug 16 '17 09:08 carponte

Same issue here

francescodoffizi avatar Sep 19 '17 13:09 francescodoffizi

Same here. I am publishing an ionic app. For Android and iOS there is no issue, but publishing to Windows gets the same error as reported here:

Failed to restore plugin "com.moust.cordova.videoplayer" from config.xml. You mi ght need to try adding it again. Error: Failed to fetch plugin com.moust.cordova .videoplayer@https://github.com/moust/cordova-plugin-videoplayer.git via registr y. 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 1 Error output: npm ERR! git clone C:\Users\IEUser\AppData\Roaming\npm-cache\_git-remotes\git-ht tps-github-com-moust-cordova-plugin-videoplayer-git-5f632a25 C:\Users\IEUser\App Data\Local\Temp\npm-548-0cfdf0c0\git-cache-bfaa6676\4e97e063ecddde4c3814605011fc 3f0a9d72a35e: Cloning into 'C:\Users\IEUser\AppData\Local\Temp\npm-548-0cfdf0c0\ git-cache-bfaa6676\4e97e063ecddde4c3814605011fc3f0a9d72a35e'

My info: cli packages: (C:\Users\IEUser\AppData\Roaming\nvm\v8.5.0\node_modules) @ionic/cli-utils : 1.11.0 ionic (Ionic CLI) : 3.11.0

global packages: cordova (Cordova CLI) : 7.0.1

local packages: @ionic/app-scripts : 1.3.12 Cordova Platforms : windows 5.0.0 Ionic Framework : ionic-angular 3.5.0

System: Node : v8.5.0 npm : 4.6.1 OS : Windows 8.1

tfairfield avatar Sep 22 '17 13:09 tfairfield

I have experienced this issue with other Cordova plugins on Cordova 7.1.0... so it seems to be a general bug with Cordova.

alexreg avatar Nov 14 '17 02:11 alexreg

any solution?

afdev82 avatar Jan 29 '18 16:01 afdev82

Any solution?

tusharnetset avatar Feb 12 '18 13:02 tusharnetset

Use cordova version 8 and the problem goes away

PhilAndrew avatar Apr 12 '18 09:04 PhilAndrew

That's not true at least for me, I'm using cordova 8.0.0 and as long as the plugin is already in the node_modules folder I get the error. I'm using also other npm packages in my project, so the solution that I came to is to execute the cordova command before npm install that I use to install also the other packages. The reason is that npm install will install also the cordova plugins in the node_modules directory and after that the cordova command will fail.

This is general for cordova, not specific to this plugin.

afdev82 avatar Apr 12 '18 09:04 afdev82

seems to be to do with cordova platform add adding "git+" to the repo specs.

if you remove that from both your config.xml and package.json - it works...(but they are then re-added for next time!)

Why?!

nickhingston avatar May 07 '18 11:05 nickhingston