composer create-project laravel/laravel **project_name**
You are running Composer with SSL/TLS protection disabled. Loading composer repositories with package information
但似乎一切都很好,文件夹结构也是正确的。
composer install
您正在运行已禁用SSL / TLS保护的Composer。 使用包信息加载composer存储库 警告:通过http访问packagist.org,这是一种不安全的协议。 更新依赖项(包括require-dev) 您的要求无法解析为可安装的软件包。
Problem 1 - laravel/framework v5.4.9 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system. - laravel/framework v5.4.8 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system. - laravel/framework v5.4.7 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system. - laravel/framework v5.4.6 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system. - laravel/framework v5.4.5 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system. - laravel/framework v5.4.4 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system. - laravel/framework v5.4.3 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system. - laravel/framework v5.4.28 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system. - laravel/framework v5.4.27 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system. - laravel/framework v5.4.26 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system. - laravel/framework v5.4.25 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system. - laravel/framework v5.4.24 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system. - laravel/framework v5.4.23 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system. - laravel/framework v5.4.22 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system. - laravel/framework v5.4.21 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system. - laravel/framework v5.4.20 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system. - laravel/framework v5.4.2 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system. - laravel/framework v5.4.19 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system. - laravel/framework v5.4.18 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system. - laravel/framework v5.4.17 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system. - laravel/framework v5.4.16 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system. - laravel/framework v5.4.15 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system. - laravel/framework v5.4.14 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system. - laravel/framework v5.4.13 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system. - laravel/framework v5.4.12 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system. - laravel/framework v5.4.11 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system. - laravel/framework v5.4.10 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system. - laravel/framework v5.4.1 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system. - laravel/framework v5.4.0 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system. - Installation request for laravel/framework 5.4.* -> satisfiable by laravel/framework[v5.4.0, v5.4.1, v5.4.10, v5.4.11, v5.4.12, v5.4.13, v5.4.14, v5.4.15, v5.4.16, v5.4.17, v5.4.18, v5.4.19, v5.4.2, v5.4.20, v5.4.21, v5.4.22, v5.4.23, v5.4.24, v5.4.25, v5.4.26, v5.4.27, v5.4.28, v5.4.3, v5.4.4, v5.4.5, v5.4.6, v5.4.7, v5.4.8, v5.4.9].
我重新安装了php到C:/ php 我将php.ini文件解压缩到C:/ 我设置了环境变量 我也取消注释了扩展名
答案 0 :(得分:0)
最后我找到了解决方案。
我已经卸载了作曲家,我发现我的电脑里有2个php配置。
我删除了位于xampp文件夹之外的配置。
我已经下载了一个新的PHP,将其解压缩到xampp文件夹中
(您需要将php.ini-development文件更改为:php.ini)
然后你必须找到(ctrl + f):extension_dir并将其修改为我的路径C:/ xampp / php / ext
然后安装了composer,找到了php.exe然后它说openresl有问题所以我在php.ini文件中修改了相关的扩展名(只需删除;)
现在它工作得很好。