无法安装 ui 包
Can't install ui package
我刚刚下载了 laravel 6 并且我正在尝试安装 composer require laravel/ui 包,但是我收到以下 composer 错误:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Conclusion: remove laravel/framework v6.18.3
- Conclusion: don't install laravel/framework v6.18.3
那是因为您正在使用 Laravel 6 并且您尝试需要的包需要 Laravel 7。
如果您将 composer require 行更改为:
composer require laravel/ui:^1.0 --dev
它应该会下载您需要的正确包。
编辑:如果你以后看到这个错误,你能做的最好的事情就是去说包的存储库(在这种情况下 this repo) and open the composer.json 说回购,看看包的要求是什么是。在这种情况下,我链接了最新版本的 composer.json,它声明它需要 Laravel 7.
这对你有帮助。试试这个:
composer require laravel/ui
我刚刚下载了 laravel 6 并且我正在尝试安装 composer require laravel/ui 包,但是我收到以下 composer 错误:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Conclusion: remove laravel/framework v6.18.3
- Conclusion: don't install laravel/framework v6.18.3
那是因为您正在使用 Laravel 6 并且您尝试需要的包需要 Laravel 7。
如果您将 composer require 行更改为:
composer require laravel/ui:^1.0 --dev
它应该会下载您需要的正确包。
编辑:如果你以后看到这个错误,你能做的最好的事情就是去说包的存储库(在这种情况下 this repo) and open the composer.json 说回购,看看包的要求是什么是。在这种情况下,我链接了最新版本的 composer.json,它声明它需要 Laravel 7.
这对你有帮助。试试这个:
composer require laravel/ui