我无法Laravel 5.6
在我的 wamp 服务器上安装。我有以下设置
- PHP 版本 7.1.3
- Composer 版本 1.6.3 2018-01-31
当我尝试通过 composer 安装 laravel 应用程序时,我收到以下错误cmd
警告:count():参数必须是在 C:\Users\MyName\AppData\Roaming\Composer\vendor\symfony\process\Pipes\Windo wsPipes.php 中实现 Counta ble 的数组或对象(第 221 行)
cmd
多次返回这些错误,最后在收到消息后返回错误
申请准备好了!建立一些惊人的东西。
当我尝试运行此命令时php artisan serve
,cmd
返回以下错误
警告:require(D:\wamp64\www\Laravel5.6\PR/vendor/autoload.php): 无法打开流:D:\wamp64\www\Laravel5.6\PR\artisan 中没有这样的文件或目录在线 18
致命错误:require():在 D:\wamp64 中打开所需的 'D:\wamp64\www\Laravel5.6\PR/ven dor/autoload.php' (include_path='.;C:\php\pear') 失败\www\Laravel5.6\PR\ artisan 在第 18 行
我已经搜索过它并找到了几篇文章,但他们都说这是关于 PHP 版本的,有些人说我需要更新作曲家,有些人说我需要停止代理或任何防病毒软件。
我已经按照不同文章中的说明完成了上述所有步骤,但仍然面临同样的问题。我仍然无法安装laravel 5.6
。
如果有人指导我如何解决该问题,我将不胜感激。
已编辑
遵循@laravel levaral answer的指示后,我面临以下错误。
[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