安装Laravel Jetstream时出现此错误:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- laravel/jetstream[v2.3.0, ..., 2.x-dev] require league/commonmark ^1.3 -> found league/commonmark[1.3.0, ..., 1.6.x-dev] but the package is fixed to 2.0.0 (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.
- Root composer.json requires laravel/jetstream ^2.3 -> satisfiable by laravel/jetstream[v2.3.0, ..., 2.x-dev].
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
这是全新安装的Laravel框架8.51.0
4条答案
按热度按时间ddhy6vgd1#
我试了这些答案,但对我不起作用,所以我试了这个。
首先,应在新的Laravel应用程序中安装Jetstream(请阅读Jetstream laravel的此文档:https://jetstream.laravel.com/2.x/installation.html)。第一步:
1.安装新的laravel项目版本8
composer require laravel/jetstream:*
,这样就完成了继续安装jetstreamkmpatx3s2#
Laravel 8文档不清晰。您可以通过以下命令修复它:
pdsfdshx3#
此命令:
也生成了与您为我生成的错误相同的错误,但另一个命令工作正常:
xkrw2x1b4#
我尝试安装新鲜的laravel(具体的laravel项目像这样):
然后进入这个项目
安装laravel/jetstream:
一切正常。你试过安装laravel 8.0特定版本吗?
或者这个article will help you
这是我的composer.json文件: