我无法在我的电脑上安装 Laravel 5.6wamp
服务器。我有以下设置:
- PHP 版本 7.1.3
- 作曲家版本1.6.3 2018-01-31
当我尝试通过 Composer 安装 Laravel 应用程序时,我收到以下错误cmd
:
警告:count():参数必须是实现 Counta 的数组或对象
C:\Users\MyName\AppData\Roaming\Composer\vendor\symfony\process\Pipes\Windo 中的 ble
wsPipes.php 第 221 行
cmd
多次返回这些错误,在错误结束时,我收到以下消息:
申请准备好了!构建一些令人惊奇的东西。
当我尝试运行这个命令时php artisan serve
then cmd
返回以下错误:
警告:require(D:\wamp64\www\Laravel5.6\PR/vendor/autoload.php):打开失败
n 流:在 li 上的 D:\wamp64\www\Laravel5.6\PR\artisan 中没有这样的文件或目录
新18
致命错误:require(): 无法打开必需的'D:\wamp64\www\Laravel5.6\PR/ven
D:\wamp64\www\Laravel5.6\PR 中的 dor/autoload.php' (include_path='.;C:\php\pear')
18号线工匠
我对此进行了搜索并找到了几篇文章。他们大多数人都说这是关于 PHP 版本的问题或者我需要更新 Composer。有人说我需要停止代理或任何防病毒软件。
我已完成上述所有步骤,但仍然面临同样的问题。我仍然无法安装 Laravel 5.6。
Edited
按照以下说明进行操作后这个答案 https://stackoverflow.com/questions/49146472/why-composer-does-not-installing-laravel-5-6-propoerly?#49148465,我面临以下错误:
[Composer\Exception\NoSslException]
The openssl extension is required for SSL/TLS protection but is not availab
le. If you can not enable the openssl extension, you can disable this error
, at your own risk, by setting the 'disable-tls' option to true.
create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--r
epository REPOSITORY] [--repository-url REPOSITORY-URL] [--dev] [--no-dev] [--no
-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vc
s] [--remove-vcs] [--no-install] [--ignore-platform-reqs] [--] [<package>] [<dir
ectory>] [<version>]
上述错误也出现在cmd
.