monica icon indicating copy to clipboard operation
monica copied to clipboard

Unable to install MonicaHQ 3.4.0 on Lubuntu 20.04

Open Razortide opened this issue 3 years ago • 2 comments

Hello all, I am struggling with MonicaHQ installation on my Lubuntu 20.04 machine following this guideline: https://github.com/monicahq/monica/blob/master/docs/installation/providers/ubuntu.md/. The system is a fresh installation.

The first issue I faced was to install yarn with npm (and went with apt instead).

My main issues is in step 3 composer install --no-interaction --no-dev I receive the following error:

Your requirements could not be resolved to an installable set of packages.

Problem 1

  • Installation request for jean85/pretty-package-versions 2.05 -> satisfiable by jean85/pretty-package-versions[2.0.5].
  • jean85/pretty-package-versions 2.0.5 requires composer-runtime-api ^2.0.0 -> no matching package found. Problem 2
  • jean85/pretty-package-versions 2.0.5 requires composer-runtime-api ^2.0.0 -> no matching package found.
  • sentry/sentry 3.3.3 requires jean85/pretty-package-versions ^1.5|^2.0.1 -> satisfiable by jean85/pretty-package-versions[2.0.5]
  • Installation request for sentry/sentry 3.3.3 -> satisfiable by sentry/sentry[3.3.3].

Any guidance is appreciated!

Razortide avatar Nov 08 '21 11:11 Razortide

So what is your PHP version, what is your composer version?

Look like you using old composer version, please upgrade to newer composer

sudo composer self-update --2

nhymxu avatar Nov 20 '21 11:11 nhymxu

Adding the composer flag --ignore-platform-reqs might fix this. See this question and this blog post

elcf avatar Apr 05 '22 22:04 elcf