capacitor-background-runner icon indicating copy to clipboard operation
capacitor-background-runner copied to clipboard

Capacitor 6 - Unable to install @capacitor/background-runner

Open WesleyRexmedia opened this issue 1 year ago • 10 comments

I started with a fresh project and can’t install @capacitor/background-runner In Vs Code with the Ionic plugin, i made a new tabs project with Vue. And run following command in the terminal

npm install @capacitor/background-runner

Apparently Capacitor was upgraded to version number 6. And i was trying to install @capacitor/background-runner and i run into an install error.

\Ionic\beep>npm install @capacitor/background-runner
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: @capacitor/[email protected]
npm ERR! node_modules/@capacitor/core
npm ERR!   @capacitor/core@"6.0.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer @capacitor/core@"^5.0.0" from @capacitor/[email protected]
npm ERR! node_modules/@capacitor/background-runner
npm ERR!   @capacitor/background-runner@"*" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

If anyone could help that would be great ! Thank you in advance !

WesleyRexmedia avatar May 01 '24 13:05 WesleyRexmedia

Same issue it seems like the project has not been upgraded to use Capacitor 6 version

drsaint23 avatar May 02 '24 14:05 drsaint23

any news on this?

Wenceslauu avatar May 09 '24 14:05 Wenceslauu

same issue here

teamupdivision avatar May 29 '24 09:05 teamupdivision

same here

lorens-osman-dev avatar Jun 14 '24 11:06 lorens-osman-dev

same here

MrMagicalSoftware avatar Jun 26 '24 16:06 MrMagicalSoftware

Any updates here? Or anything we can help, would be great to have it on version v6.

jdinartejesus avatar Jul 08 '24 13:07 jdinartejesus

Progress has been made. The build from 10d ago incorporates changes to support capacitor 6: https://www.npmjs.com/package/@capacitor/background-runner/v/1.0.6-dev-20240628T145630.0

Perhaps give it a spin and see if you encounter issues.

NaterGator avatar Jul 08 '24 22:07 NaterGator

Any updates? I'm still encountering this problem in capacitor v6.

filippocamagni avatar Jul 29 '24 09:07 filippocamagni

It is working for me, I am using all capacitor plugins v6

PratikBodawala avatar Aug 26 '24 12:08 PratikBodawala

Weird, v1.1.0 which is 5 months olds needs Capacitor v5. But the dev versions of v1.0.6 supports Capacaitor 6 and are only two weeks old. Sometings is wrong with the release numbers. I hope sone the dev version of v1.0.6 becomes available as a production release with a correct version number. :)

richard-elastique avatar Sep 24 '24 13:09 richard-elastique