我从作曲家那里得到的错误信息是:
您的要求无法解析为可安装的软件包集.
您的要求无法解析为可安装的软件包集.
Problem 1 - Installation request for laravel/framework v5.4.28 -> satisfiable by laravel/framework[v5.4.28]. - laravel/framework v5.4.28 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system. Problem 2 - Installation request for PHPunit/PHPunit 5.7.21 -> satisfiable by PHPunit/PHPunit[5.7.21]. - PHPunit/PHPunit 5.7.21 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system. Problem 3 - laravel/framework v5.4.28 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system. - laravel/tinker v1.0.1 requires illuminate/console ~5.1 -> satisfiable by laravel/framework[v5.4.28]. - Installation request for laravel/tinker v1.0.1 -> satisfiable by laravel/tinker[v1.0.1].
我已经尝试取消注释extension = PHP_mbstring.dll,但它仍然会引发错误.我试图更改“PHP.ini”中的extension_dir,但它给出了一个错误.感谢帮助.
– 基于新信息的编辑 –
由于这是Windows,重新安装PHP,在PHP.INI文件中启用扩展,并重新启动Web服务器,应该可以正常工作.
– LINUX的先前解决方案 –
你需要为PHP安装mbstring.
使用:
sudo apt-get install PHPX.X-mbstring
其中X.X是PHP的版本号.