默认情况下
composer require nodeloc/flarum-ext-signature
会报错,因为nodeloc这个签名扩展没在官方仓库里。
需要制定github源进行安装
经过几天几夜的研究,反复的安装,终于装上了。
但报错一个小问题:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires nodeloc/flarum-ext-signature * -> satisfiable by nodeloc/flarum-ext-signature[1.0.0].
- nodeloc/flarum-ext-signature 1.0.0 requires symfony/css-selector ^5.0 || ^6.0.2 -> found symfony/css-selector[v5.0.0, ..., v5.4.40, v6.0.2, ..., v6.4.8] but the package is fixed to v7.1.1 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require nodeloc/flarum-ext-signature:*" to figure out if any version is installable, or "composer require nodeloc/flarum-ext-signature:^2.1" if you know which you need.
@James 是何故 ?