0

我正在尝试laravel/ui为 Laravel 6.4 安装,但是当我尝试通过 composer 安装时,我收到错误消息Your requirements could not be resolved to an installable set of packages.

Problem 1
    - The requested package laravel/framework (locked at v6.4.0, required as ^5.0) is satisfiable by laravel/framework[v6.4.0], but these conflict with your requirements or minimum-stability.
  Problem 2
    - laravel/framework v5.0.9 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
...
...
...
To enable extensions, verify that they are enabled in your .ini files:
...
Installation failed, reverting ./composer.json to its original content.

我也尝试过手动安装,但无济于事。作曲家.json:作曲家.json

4

2 回答 2

0

如果未启用 mcrypt 或 ext-mcrypt,请打开您的 php.ini 并搜索

;extension=php_mcrypt.so 然后删除 ; 从那行的开头。其他分机的程序相同。

source 查找并打开文件路径;Laravel 需要 Mcrypt PHP 扩展

于 2019-10-24T17:07:13.753 回答
-1

你可以简单地运行这个命令来安装任何 php 包。“sudo apt-get install php-”。在您的情况下,它应该是“sudo apt-get install php-mcrypt”

于 2019-10-24T19:53:12.937 回答