Hello,
I've just installed Flarum beta16 on my Raspberry Pi 4 (Raspbian Buster), with PHP 7.3.27 and Composer 2.0.13. (installation made with Composer 1.8.4, updated later)
I installed a few extensions without problem (fof/user-directory, qiaeru/lang-french, fof/best-answer, fof/upload), but some extensions won't install (fof/moderator-notes, fof/user-bio):
$ sudo -u www-data composer require fof/user-bio
Using version ^1.0 for fof/user-bio
./composer.json has been updated
Running composer update fof/user-bio
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires fof/user-bio ^1.0 -> satisfiable by fof/user-bio[1.0.0].
- fof/user-bio 1.0.0 requires flarum/core ^1.0.0 -> found flarum/core[dev-master, 1.x-dev (alias of dev-master)] but it does not match your minimum-stability.
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
(the command was run in the Flarum root directory, in which there is Flarum's composer.json
)
composer.json
:
{
"name": "flarum/flarum",
"description": "Delightfully simple forum software.",
"type": "project",
"keywords": [
"forum",
"discussion"
],
"homepage": "https://flarum.org/",
"license": "MIT",
"authors": [
{
"name": "Flarum",
"email": "info@flarum.org",
"homepage": "https://flarum.org/team"
}
],
"support": {
"issues": "https://github.com/flarum/core/issues",
"source": "https://github.com/flarum/flarum",
"docs": "https://flarum.org/docs/"
},
"require": {
"flarum/approval": "^0.1.0",
"flarum/bbcode": "^0.1.0",
"flarum/core": "^0.1.0",
"flarum/emoji": "^0.1.0",
"flarum/flags": "^0.1.0",
"flarum/lang-english": "^0.1.0",
"flarum/likes": "^0.1.0",
"flarum/lock": "^0.1.0",
"flarum/markdown": "^0.1.0",
"flarum/mentions": "^0.1.0",
"flarum/nicknames": "^0.1.0",
"flarum/pusher": "^0.1.0",
"flarum/statistics": "^0.1.0",
"flarum/sticky": "^0.1.0",
"flarum/subscriptions": "^0.1.0",
"flarum/suspend": "^0.1.0",
"flarum/tags": "^0.1.0",
"fof/best-answer": "^0.4.0",
"fof/upload": "^0.14.0",
"fof/user-directory": "^0.6.2",
"qiaeru/lang-french": "^1.10"
},
"config": {
"preferred-install": "dist",
"sort-packages": true
},
"minimum-stability": "beta",
"prefer-stable": true
}
Comparing the composer.json
s of an extension that installs with the one of an extension that doesn't, they seem to have the same requirements, so I don't understand the problem...
Edit: It seems to happen only with extensions with version >=1.0.0
. I tried the option -W
but it does nothing.