当前位置: 首页 > 知识库问答 >
问题:

安装laravel依赖项时遇到的问题

段干庆
2023-03-14

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:/I中,我设置了环境变量,还取消了扩展名的注释

共有1个答案

闾丘永春
2023-03-14

最后我找到了解决办法
我卸载了composer,发现我的电脑中有2个php配置。我删除了位于xampp文件夹外的配置。我下载了一个新的PHP,并将其解压缩到xampp文件夹中(您需要将PHP.ini-development文件更改为:PHP.ini),然后您必须找到(ctrl f):extension_dir,并将其修改为您的路径(在我的例子中是C:/xampp/PHP/ext),然后安装composer,找到了php.exe,然后它说openssl有问题,所以我在php.ini文件中修改了相关的扩展名(只需删除;),现在它工作得很好。

 类似资料:
  • 我希望尝试在拉库的Cro图书馆:https://cro.services/docs 但是,当我尝试使用安装它时,我得到以下输出: 在Ubuntu(WSL2)和Kali linux上的结果相同。

  • 我使用的是laravel 5.2 问题1 > 要启用扩展,请验证它们是否在这些. ini文件中启用: /etc/php5/cli/php。ini 我已经添加了extension=mongo。所以在/etc/php5/cli/php中。伊尼。我使用的是ubuntu 15.04和默认的apache2服务器。 我使用MongoDB 3.2.6版本。 请让我知道是什么问题? 谢谢

  • 当尝试使用pip和conda安装Dash包时,我收到一个错误,说明找不到该包。所有其他软件包都可以使用pip安装 仪表板组件:https://plot.ly/dash/getting-started 例外情况:回溯(最近一次调用last):文件“C:\Users\Owner\Anaconda3\lib\site packages\pip\basecommand.py”,第215行,主状态为self

  • 初始化引导层 java.lang.module.FindException 时出错:找不到模块 helloFX 我的包名为helloFX,在从eclipse市场安装javafx时,我收到上面提到的执行错误

  • 这是一个react-native安装问题: 错误,无法安装应用程序。确保您已经设置了Android开发环境:https://facebook.github.io/react-native/docs/geting-started.html#android-development-environment。运行带有--verbose标志的CLI以获得更多详细信息。

  • 安装 cuda 遇到了很多问题,这里简单记一下 下载 cudnn download cuda-toolkit 版本 查看 cuda 版本: cat /usr/local/cuda/version.txt 查看 cudnn 版本: cat /usr/local/cuda/include/cudnn.h | grep CUDNN_MAJOR -A 2 查看显卡信息: lspci | grep VGA