编程语言
首页 > 编程语言> > php – 为什么作曲家没有预先安装laravel 5.6?

php – 为什么作曲家没有预先安装laravel 5.6?

作者:互联网

我无法在我的wamp服务器上安装Laravel 5.6.我有以下设置

> PHP版本7.1.3
>作曲家版本1.6.3 2018-01-31

当我尝试通过composer安装laravel应用程序时,我在cmd中收到以下错误

Warning: count(): Parameter must be an array or an object that implements Counta
ble in C:\Users\MyName\AppData\Roaming\Composer\vendor\symfony\process\Pipes\Windo
wsPipes.php on line 221

cmd多次返回这些错误,最后收到消息后的错误

Application ready! Build something amazing.

当我试图运行此命令php artisan serve然后cmd返回以下错误

Warning: require(D:\wamp64\www\Laravel5.6\PR/vendor/autoload.php): failed to ope
n stream: No such file or directory in D:\wamp64\www\Laravel5.6\PR\artisan on li
ne 18

Fatal error: require(): Failed opening required ‘D:\wamp64\www\Laravel5.6\PR/ven
dor/autoload.php’ (include_path=’.;C:\php\pear’) in D:\wamp64\www\Laravel5.6\PR\
artisan on line 18

我搜索过它并找到了几篇文章,但他们都说这是关于PHP版本的,有些人说我需要更新作曲家,有些人说我需要停止代理或任何防病毒软件.

我按照不同文章的指示完成了上述所有步骤,但仍面临同样的问题.我仍然没有安装laravel 5.6.

如果有人指导我,我该如何解决问题,我将不胜感激.

编辑

按照@laravel levaral回答的说明后,我面临以下错误.

[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中

解决方法:

Laravel 5.6需要PHP> = 7.1.3

https://laravel.com/docs/5.6#installing-laravel

如果你在wamp / xamp中运行,你不需要’php artisan serve’.只需创建虚拟主机并将vhost目录指向安装文件夹blog / public即可.

标签:php,laravel,composer-php,laravel-5-6
来源: https://codeday.me/bug/20190622/1262874.html