问题描述(报错内容):
之前尝试安装一个长得像discord的主题,但是因为不再维护且github仓库404而未安装成功。后来安装任何东西都会报一样的错。报错内容如下,希望能有人帮我看看如何解决。似乎和lock file有关。谢谢各位!我用[domain]
替代了我的域名。
composer require pipecraft/flarum-ext-id-slug
./composer.json has been updated
Running composer update pipecraft/flarum-ext-id-slug
Loading composer repositories with package information
Updating dependencies
Lock file operations: 1 install, 0 updates, 0 removals
- Locking pipecraft/flarum-ext-id-slug (v1.1.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 3 installs, 0 updates, 0 removals
- Downloading antoinefr/flarum-ext-online (v1.0.1)
- Downloading pipecraft/flarum-ext-id-slug (v1.1.0)
- Downloading serakoi/flarumdiscordtheme (0.1.0)
0/3 [>---------------------------] 0% Failed to download serakoi/flarumdiscordtheme from dist: The "https://api.github.com/repos/Serakoi/flarum-discord-theme-2/zipball/0c61875f7ea1f4f2a1cb5c438cd10aef7ce9ed3e" file could not be downloaded (HTTP/2 404 ):
{"message":"Not Found","documentation_url":"https://docs.github.com/rest/repos/contents#download-a-repository-archive-zip","status":"404"}
Now trying to download from source
- Syncing serakoi/flarumdiscordtheme (0.1.0) into cache
Cloning failed using an ssh key for authentication, enter your GitHub credentials to access private repos
When working with _public_ GitHub repositories only, head here to retrieve a token:
https://github.com/settings/tokens/new?scopes=&description=Composer+on+8888e51afa83+2025-02-07+0809
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+8888e51afa83+2025-02-07+0809
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):
No token given, aborting.
You can also add it manually later by using "composer config --global --auth github-oauth.github.com <token>"
1/3 [=========>------------------] 33% Failed to download antoinefr/flarum-ext-online from dist: curl error 28 while downloading https://api.github.com/repos/AntoineFr/flarum-ext-online/zipball/463cdcedef979383f0a5c7356966c9bbd5fa0208: Operation timed out after 1025174 milliseconds with 0 bytes received
Now trying to download from source
- Syncing antoinefr/flarum-ext-online (v1.0.1) into cache
Failed to download pipecraft/flarum-ext-id-slug from dist: curl error 28 while downloading https://api.github.com/repos/PipecraftNet/flarum-ext-id-slug/zipball/124805a6ce544bcb5d27383f6ea6ddbe250940f9: Operation timed out after 1025173 milliseconds with 0 bytes received
Now trying to download from source
- Syncing pipecraft/flarum-ext-id-slug (v1.1.0) into cache
3/3 [============================] 100%
In Git.php line 587:
Failed to execute git clone --mirror -- https://github.com/Serakoi/flarum-discord-theme-2.git /
tmp/composer/cache/vcs/https---github.com-Serakoi-flarum-discord-theme-2.git/
Cloning into bare repository '/tmp/composer/cache/vcs/https---github.com-Serakoi-flarum-discord
-theme-2.git'...
remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/get-started/getting-started-with-git/about-remote-re
positories#cloning-with-https-urls for information on currently recommended modes of authentica
tion.
fatal: Authentication failed for 'https://github.com/Serakoi/flarum-discord-theme-2.git/'
require [--dev] [--dry-run] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--fixed] [--no-suggest] [--no-progress] [--no-update] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--update-no-dev] [-w|--update-with-dependencies] [-W|--update-with-all-dependencies] [--with-dependencies] [--with-all-dependencies] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-m|--minimal-changes] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--] [<packages>...]
/www/sites/[domain]/index # composer dump-autoload -a
Generating optimized autoload files (authoritative)
Generated optimized autoload files (authoritative) containing 4165 classes
/www/sites/[domain]/index # composer require pipecraft/flarum-ext-id-slug
./composer.json has been updated
Running composer update pipecraft/flarum-ext-id-slug
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 3 installs, 0 updates, 0 removals
- Downloading antoinefr/flarum-ext-online (v1.0.1)
- Downloading pipecraft/flarum-ext-id-slug (v1.1.0)
- Downloading serakoi/flarumdiscordtheme (0.1.0)
0/3 [>---------------------------] 0% Failed to download serakoi/flarumdiscordtheme from dist: The "https://api.github.com/repos/Serakoi/flarum-discord-theme-2/zipball/0c61875f7ea1f4f2a1cb5c438cd10aef7ce9ed3e" file could not be downloaded (HTTP/2 404 ):
{"message":"Not Found","documentation_url":"https://docs.github.com/rest/repos/contents#download-a-repository-archive-zip","status":"404"}
Now trying to download from source
- Syncing serakoi/flarumdiscordtheme (0.1.0) into cache
Cloning failed using an ssh key for authentication, enter your GitHub credentials to access private repos
When working with _public_ GitHub repositories only, head here to retrieve a token:
https://github.com/settings/tokens/new?scopes=&description=Composer+on+8888e51afa83+2025-02-07+0827
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+8888e51afa83+2025-02-07+0827
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):
No token given, aborting.
You can also add it manually later by using "composer config --global --auth github-oauth.github.com <token>"
3/3 [============================] 100%
In Git.php line 587:
Failed to execute git clone --mirror -- https://github.com/Serakoi/flarum-discord-theme-2.git /
/www/sites/[domain]/index # composer require pipecraft/flarum-ext-id-slug
./composer.json has been updated
Running composer update pipecraft/flarum-ext-id-slug
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 3 installs, 0 updates, 0 removals
- Downloading serakoi/flarumdiscordtheme (0.1.0)
0/1 [>---------------------------] 0% Failed to download serakoi/flarumdiscordtheme from dist: The "https://api.github.com/repos/Serakoi/flarum-discord-theme-2/zipball/0c61875f7ea1f4f2a1cb5c438cd10aef7ce9ed3e" file could not be downloaded (HTTP/2 404 ):
{"message":"Not Found","documentation_url":"https://docs.github.com/rest/repos/contents#download-a-repository-archive-zip","status":"404"}
Now trying to download from source
- Syncing serakoi/flarumdiscordtheme (0.1.0) into cache
Cloning failed using an ssh key for authentication, enter your GitHub credentials to access private repos
When working with _public_ GitHub repositories only, head here to retrieve a token:
https://github.com/settings/tokens/new?scopes=&description=Composer+on+8888e51afa83+2025-02-07+0827
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+8888e51afa83+2025-02-07+0827
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):
No token given, aborting.
You can also add it manually later by using "composer config --global --auth github-oauth.github.com <token>"
1/1 [============================] 100%
In Git.php line 587:
Failed to execute git clone --mirror -- https://github.com/Serakoi/flarum-discord-theme-2.git /
tmp/composer/cache/vcs/https---github.com-Serakoi-flarum-discord-theme-2.git/
Cloning into bare repository '/tmp/composer/cache/vcs/https---github.com-Serakoi-flarum-discord
-theme-2.git'...
remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/get-started/getting-started-with-git/about-remote-re
positories#cloning-with-https-urls for information on currently recommended modes of authentica
tion.
fatal: Authentication failed for 'https://github.com/Serakoi/flarum-discord-theme-2.git/'
require [--dev] [--dry-run] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--fixed] [--no-suggest] [--no-progress] [--no-update] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--update-no-dev] [-w|--update-with-dependencies] [-W|--update-with-all-dependencies] [--with-dependencies] [--with-all-dependencies] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-m|--minimal-changes] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--] [<packages>...]
已尝试的解决办法(演示网址或图片):不知道有什么解决方式可用,所以没有尝试。