Problem with dependencies

Hello,

I got a problem with my dependencies as I tried to install the ApexCharts library.

While resolving: @vue/cli-plugin-unit-jest@5.0.8
Found: ts-jest@27.0.0
node_modules/ts-jest
  peerOptional ts-jest@"27.x" from @vue/vue3-jest@27.0.0
  node_modules/@vue/vue3-jest
    peerOptional @vue/vue3-jest@"^27.0.0-alpha.3" from @vue/cli-plugin-unit-jest@5.0.8
    node_modules/@vue/cli-plugin-unit-jest
      dev @vue/cli-plugin-unit-jest@"~5.0.0-rc.1" from the root project
    dev @vue/vue3-jest@"^27.0.0-alpha.3" from the root project
  dev ts-jest@"27.0.0" from the root project

Could not resolve dependency:
peerOptional ts-jest@"^27.0.4" from @vue/cli-plugin-unit-jest@5.0.8
node_modules/@vue/cli-plugin-unit-jest
  dev @vue/cli-plugin-unit-jest@"~5.0.0-rc.1" from the root project

Conflicting peer dependency: ts-jest@27.1.5
node_modules/ts-jest
  peerOptional ts-jest@"^27.0.4" from @vue/cli-plugin-unit-jest@5.0.8
  node_modules/@vue/cli-plugin-unit-jest
    dev @vue/cli-plugin-unit-jest@"~5.0.0-rc.1" from the root project

Fix the upstream dependency conflict, or retry
this command with --force or --legacy-peer-deps
to accept an incorrect (and potentially broken) dependency resolution.

Can someone help me how I can fix this ?

Thanks

Hi,
sometimes this problem is resolve install with legacy dependencies

try install so:

npm i apexcharts --legacy-peer-deps