Flarum-composer安装成功。

默认情况下

composer require nodeloc/flarum-ext-signature

会报错,因为nodeloc这个签名扩展没在官方仓库里。

需要制定github源进行安装

经过几天几夜的研究,反复的安装,终于装上了。

[upl-image-preview url=https://s.rmimg.com/2024-10-22/1729529731-167068-1729529419467.png]

但报错一个小问题:

``` 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"#1 是何故 ?

缺这个 symfony/css-selector ?

装上后,重装nodeloc/flarum-ext-signature,提示要token


```
GitHub API limit (60 calls/hr) is exhausted, could not fetch https://api.github.com/repos/nodeloc/flarum-ext-signature. Create a GitHub OAuth token to go over the API rate limit. You can also wait until 2024-10-22 01:47:57 for the rate limit to reset.

When working with public GitHub repositories only, head here to retrieve a token:
https://github.com/settings/tokens/new?scopes=&description=Composer+on+22bf3c3c7932+2024-10-22+0057
This token will have read-only permission for public information only.
When you need to access private GitHub repositories as well, go to:
https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+22bf3c3c7932+2024-10-22+0057
Note that such tokens have broad read/write permissions on your behalf, even if not needed by Composer.
Tokens will be stored in plain text in “/tmp/composer/auth.json” for future use by Composer.
For additional information, check https://getcomposer.org/doc/articles/authentication-for-private-packages.md#github-oauth
Token (hidden):
Token stored successfully.
```

加了个token解决。

我还是不能改标题 @James

@“alay”#p124093 没有回复才能改

@“Yucho”#p124115 不是说有回复也能改了的。

@“alay”#p124116 我记得之前James明确说过,为了防止岁月史书,不允许在主题被回复后修改标题:xhj01: