无法安装 Laravel (Windows)

Posted

技术标签:

【中文标题】无法安装 Laravel (Windows)【英文标题】:Can't install Laravel (Windows) 【发布时间】:2017-11-05 23:55:17 【问题描述】:
  C:\Users\User>composer global require "laravel/installer"
Changed current directory to C:/Users/User/AppData/Roaming/Composer
You are running Composer with SSL/TLS protection disabled.
Warning: Accessing packagist.org over http which is an insecure protocol.
Using version ^1.3 for laravel/installer
./composer.json has been updated
Loading composer repositories with package information
Warning: Accessing packagist.org over http which is an insecure protocol.
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - guzzle/guzzle v3.9.3 requires ext-curl * -> the requested php extension curl is missing from your system.
    - guzzle/guzzle v3.9.2 requires ext-curl * -> the requested PHP extension curl is missing from your system.
    - guzzle/guzzle v3.9.1 requires ext-curl * -> the requested PHP extension curl is missing from your system.
    - guzzle/guzzle v3.9.0 requires ext-curl * -> the requested PHP extension curl is missing from your system.
    - guzzle/guzzle v3.8.1 requires ext-curl * -> the requested PHP extension curl is missing from your system.
    - guzzle/guzzle v3.8.0 requires ext-curl * -> the requested PHP extension curl is missing from your system.
    - rackspace/php-opencloud dev-master requires guzzle/guzzle ~3.8 -> satisfiable by guzzle/guzzle[v3.8.0, v3.8.1, v3.9.0, v3.9.1, v3.9.2, v3.9.3].
    - Installation request for rackspace/php-opencloud dev-master -> satisfiable by rackspace/php-opencloud[dev-master].

无法在Windows上安装Laravel 5.4,我是beck-end的初学者,所以我以前从未使用过composer,我安装了php和composer,将curl解压到根目录,但是我有一个错误。

【问题讨论】:

请用英文询问 curl安装后你重启apache了吗? 需要安装curl作为PHP扩展,一般是编辑php.ini文件 我在那儿写了什么? 非常感谢!这是一个很棒的工具! 【参考方案1】:

你没有 php curl 扩展。

[Install curl for windows][1]

1: How do I install cURL on Windows?

你应该用俄语添加问题来堆栈溢出俄语。 Stack on russian

【讨论】:

以上是关于无法安装 Laravel (Windows)的主要内容,如果未能解决你的问题,请参考以下文章

无法使用 composer 在 Windows 上安装 laravel,导致错误无法打开 Stream:Permission denied

Laravel只能通过Laravel安装器进行安装。

windows离线补丁包下载路径-云盾安骑士

CentOS7 基本安装,安装好WebLogic12C,启动成功报警告,无法进入页面。

windows10安装好wampserver后不能启动Apache怎么办

windows10安装好wampserver后不能启动Apache怎么办