貼文

安装所有的插件都失败
Owner: www
Path: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
Proxy:

/usr/bin/php
PHP 8.3.12 (cli) (built: Sep 27 2024 08:55:11) (NTS) Copyright (c) The PHP Group Zend Engine v4.3.12, Copyright (c) Zend Technologies

/usr/bin/composer
PHP version 8.3.12 (/www/server/php/83/bin/php)
Run the "diagnose" command to get more detailed diagnostics output.
Composer version 2.8.0 2024-10-02 16:40:29

/usr/bin/git
git version 2.43.0

# Composer Diagnose

Checking composer.json: OK
Checking platform settings: OK
Checking git settings: OK git version 2.43.0
Checking http connectivity to packagist: OK
Checking https connectivity to packagist: FAIL
[Composer\Downloader\TransportException] curl error 28 while downloading https://repo.packagist.org/packages.json: Failed to connect to repo.packagist.org port 443: Connection timed out
Checking connectivity to https://mirrors.aliyun.com/composer/: OK
Checking github.com rate limit: OK
Checking disk free space: OK
Checking pubkeys: FAIL
Missing pubkey for tags verification
Missing pubkey for dev verification
Run composer self-update --update-keys to set them up
Checking Composer version: OK
Checking Composer and its dependencies for vulnerabilities: OK
Composer version: 2.8.0
PHP version: 8.3.12
PHP binary path: /www/server/php/83/bin/php
OpenSSL version: OpenSSL 1.1.1o 3 May 2022
curl version: 7.74.0 libz 1.3 ssl OpenSSL/1.1.1o
zip: extension present, unzip present, 7-Zip not available

# Fresns Plugin Command

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 laravel/framework ^11.20 -> satisfiable by laravel/framework[v11.20.0, ..., 11.x-dev].
- laravel/framework[v11.20.0, ..., 11.x-dev] require fruitcake/php-cors ^1.3 -> found fruitcake/php-cors[dev-feat-setOptions, dev-master, dev-main, dev-test-8.2, v0.1.0, v0.1.1, v0.1.2, v1.0-alpha1, ..., 1.2.x-dev (alias of dev-master)] but it does not match the constraint.

Failed to install packages, calc composer.json hash value fail
Failed to update plugin dependency

安装失败




我检查了我的composer信息:
composer require fruitcake/laravel-cors
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]? yes
./composer.json has been created
Running composer update fruitcake/laravel-cors
Loading composer repositories with package information
Updating dependencies
Lock file operations: 21 installs, 0 updates, 0 removals
- Locking carbonphp/carbon-doctrine-types (3.2.0)
- Locking doctrine/inflector (2.0.10)
- Locking fruitcake/laravel-cors (v3.0.0)
- Locking fruitcake/php-cors (v1.2.0)
- Locking illuminate/collections (v9.52.16)
- Locking illuminate/conditionable (v9.52.16)
- Locking illuminate/contracts (v9.52.16)
- Locking illuminate/macroable (v9.52.16)
- Locking illuminate/support (v9.52.16)
- Locking nesbot/carbon (2.72.5)
- Locking psr/clock (1.0.0)
- Locking psr/container (2.0.2)
- Locking psr/simple-cache (3.0.0)
- Locking symfony/deprecation-contracts (v3.3.0)
- Locking symfony/http-foundation (v6.4.10)
- Locking symfony/polyfill-mbstring (v1.29.0)
- Locking symfony/polyfill-php80 (v1.31.0)
- Locking symfony/polyfill-php83 (v1.31.0)
- Locking symfony/translation (v6.4.8)
- Locking symfony/translation-contracts (v3.4.1)
- Locking voku/portable-ascii (2.0.1)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 21 installs, 0 updates, 0 removals
- Downloading voku/portable-ascii (2.0.1)
- Downloading symfony/translation-contracts (v3.4.1)
- Downloading symfony/polyfill-mbstring (v1.29.0)
- Downloading symfony/deprecation-contracts (v3.3.0)
- Downloading symfony/translation (v6.4.8)
- Downloading symfony/polyfill-php80 (v1.31.0)
- Downloading psr/clock (1.0.0)
- Downloading carbonphp/carbon-doctrine-types (3.2.0)
- Downloading nesbot/carbon (2.72.5)
- Downloading illuminate/macroable (v9.52.16)
- Downloading psr/simple-cache (3.0.0)
- Downloading psr/container (2.0.2)
- Downloading illuminate/contracts (v9.52.16)
- Downloading illuminate/conditionable (v9.52.16)
- Downloading illuminate/collections (v9.52.16)
- Downloading doctrine/inflector (2.0.10)
- Downloading illuminate/support (v9.52.16)
- Downloading symfony/polyfill-php83 (v1.31.0)
- Downloading symfony/http-foundation (v6.4.10)
- Downloading fruitcake/php-cors (v1.2.0)
- Downloading fruitcake/laravel-cors (v3.0.0)
- Installing voku/portable-ascii (2.0.1): Extracting archive
- Installing symfony/translation-contracts (v3.4.1): Extracting archive
- Installing symfony/polyfill-mbstring (v1.29.0): Extracting archive
- Installing symfony/deprecation-contracts (v3.3.0): Extracting archive
- Installing symfony/translation (v6.4.8): Extracting archive
- Installing symfony/polyfill-php80 (v1.31.0): Extracting archive
- Installing psr/clock (1.0.0): Extracting archive
- Installing carbonphp/carbon-doctrine-types (3.2.0): Extracting archive
- Installing nesbot/carbon (2.72.5): Extracting archive
- Installing illuminate/macroable (v9.52.16): Extracting archive
- Installing psr/simple-cache (3.0.0): Extracting archive
- Installing psr/container (2.0.2): Extracting archive
- Installing illuminate/contracts (v9.52.16): Extracting archive
- Installing illuminate/conditionable (v9.52.16): Extracting archive
- Installing illuminate/collections (v9.52.16): Extracting archive
- Installing doctrine/inflector (2.0.10): Extracting archive
- Installing illuminate/support (v9.52.16): Extracting archive
- Installing symfony/polyfill-php83 (v1.31.0): Extracting archive
- Installing symfony/http-foundation (v6.4.10): Extracting archive
- Installing fruitcake/php-cors (v1.2.0): Extracting archive
- Installing fruitcake/laravel-cors (v3.0.0): Extracting archive
8 package suggestions were added by new dependencies, use `composer suggest` to see details.
Package fruitcake/laravel-cors is abandoned, you should avoid using it. No replacement was suggested.
Generating autoload files
13 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
No security vulnerability advisories found.
Using version ^3.0 for fruitcake/laravel-cors
root@iZbp12xi33e3irt5o33pfqZ:~# composer self-update
You are already using the latest available Composer version 2.8.0 (stable channel).
https://discuss.fresns.org/post/C3TVhPWV

未登入無法操作

留言 2

Do not use the Alibaba Cloud mirror; it hasn’t been updated for four or five years. The update date displayed on the website is fake, and it’s no longer maintained.

Please use the official source.

https://discuss.fresns.org/comment/oSkCV4GH
上滑加載更多