我正在尝试使用composer安装Laravel 6,但请向我显示此错误。
C:\Users\jofre>cd C:\xampp\htdocs
C:\xampp\htdocs>laravel new blog --auth Crafting application...
In CurlFactory.php line 200:
cURL error 28: Failed to connect to 190.195.101.53 port 1080: Timed out (see https://curl.haxx.se/libcurl/c/libcurl -errors.html)
new [--dev] [--auth] [-f|--force] [--] [<name>]
我尝试了另一种方法来解决这个问题。我已使用命令composer create-project --prefer-dist laravel/laravel blog "6.*"
成功安装了Laravel,但现在无法运行composer require laravel/ui
。它显示了此错误:
C:\xampp\htdocs\blog>composer require laravel/ui
Using version ^2.0 for laravel/ui
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Conclusion: remove laravel/framework v6.18.11
- Conclusion: don't install laravel/framework v6.18.11
- laravel/ui 2.x-dev requires illuminate/filesystem ^7.0 -> satisfiable by illuminate/filesystem[7.x-dev, v7.0.0, v7.0.1, v7.0.2, v7.0.3, v7.0.4, v7.0.5, v7.0.6, v7.0.7, v7.0.8, v7.1.0, v7.1.1, v7.1.2, v7.1.3, v7.2.0, v7.2.1, v7.2.2, v7.3.0, v7.4.0, v7.5.0, v7.5.1, v7.5.2, v7.6.0, v7.6.1, v7.6.2, v7.7.0, v7.7.1, v7.8.0, v7.8.1, v7.9.0, v7.9.1, v7.9.2].
- laravel/ui v2.0.0 requires illuminate/filesystem ^7.0 -> satisfiable by illuminate/filesystem[7.x-dev, v7.0.0, v7.0.1, v7.0.2, v7.0.3, v7.0.4, v7.0.5, v7.0.6, v7.0.7, v7.0.8, v7.1.0, v7.1.1, v7.1.2, v7.1.3, v7.2.0, v7.2.1, v7.2.2, v7.3.0, v7.4.0, v7.5.0, v7.5.1, v7.5.2, v7.6.0, v7.6.1, v7.6.2, v7.7.0, v7.7.1, v7.8.0, v7.8.1, v7.9.0, v7.9.1, v7.9.2].
- laravel/ui v2.0.1 requires illuminate/filesystem ^7.0 -> satisfiable by illuminate/filesystem[7.x-dev, v7.0.0, v7.0.1, v7.0.2, v7.0.3, v7.0.4, v7.0.5, v7.0.6, v7.0.7, v7.0.8, v7.1.0, v7.1.1, v7.1.2, v7.1.3, v7.2.0, v7.2.1, v7.2.2, v7.3.0, v7.4.0, v7.5.0, v7.5.1, v7.5.2, v7.6.0, v7.6.1, v7.6.2, v7.7.0, v7.7.1, v7.8.0, v7.8.1, v7.9.0, v7.9.1, v7.9.2].
- laravel/ui v2.0.2 requires illuminate/filesystem ^7.0 -> satisfiable by illuminate/filesystem[7.x-dev, v7.0.0, v7.0.1, v7.0.2, v7.0.3, v7.0.4, v7.0.5, v7.0.6, v7.0.7, v7.0.8, v7.1.0, v7.1.1, v7.1.2, v7.1.3, v7.2.0, v7.2.1, v7.2.2, v7.3.0, v7.4.0, v7.5.0, v7.5.1, v7.5.2, v7.6.0, v7.6.1, v7.6.2, v7.7.0, v7.7.1, v7.8.0, v7.8.1, v7.9.0, v7.9.1, v7.9.2].
- don't install illuminate/filesystem 7.x-dev|don't install laravel/framework v6.18.11
- don't install illuminate/filesystem v7.0.0|don't install laravel/framework v6.18.11
和
- don't install illuminate/filesystem v7.5.1|don't install laravel/framework v6.18.11
- don't install illuminate/filesystem v7.5.2|don't install laravel/framework v6.18.11
- don't install illuminate/filesystem v7.6.0|don't install laravel/framework v6.18.11
- don't install illuminate/filesystem v7.6.1|don't install laravel/framework v6.18.11
- don't install illuminate/filesystem v7.6.2|don't install laravel/framework v6.18.11
- don't install illuminate/filesystem v7.7.0|don't install laravel/framework v6.18.11
- don't install illuminate/filesystem v7.7.1|don't install laravel/framework v6.18.11
- don't install illuminate/filesystem v7.8.0|don't install laravel/framework v6.18.11
- don't install illuminate/filesystem v7.8.1|don't install laravel/framework v6.18.11
- don't install illuminate/filesystem v7.9.0|don't install laravel/framework v6.18.11
- don't install illuminate/filesystem v7.9.1|don't install laravel/framework v6.18.11
- don't install illuminate/filesystem v7.9.2|don't install laravel/framework v6.18.11
- Installation request for laravel/framework (locked at v6.18.11, required as ^6.2) -> satisfiable by laravel/framework[v6.18.11].
- Installation request for laravel/ui ^2.0 -> satisfiable by laravel/ui[2.x-dev, v2.0.0, v2.0.1, v2.0.2].
Installation failed, reverting ./composer.json to its original content.
版本信息:
LARAVEL VERSION: const VERSION = '6.18.11';