简体   繁体   English

为什么laravel 5.6在wamp上更新php 7.1.3后没有安装?

[英]Why laravel 5.6 does not installing after updating php 7.1.3 on wamp?

I am unable to install Laravel 5.6 on my wamp server. 我无法在我的wamp服务器上安装Laravel 5.6 I have following setup 我有以下设置

  • PHP Version 7.1.3 PHP版本7.1.3
  • Composer Version 1.6.3 2018-01-31 作曲家版本1.6.3 2018-01-31

When I am trying to install laravel application through composer, I am receiving following error in cmd 当我尝试通过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 警告:count():参数必须是数组或在C:\\ Users \\ MyName \\ AppData \\ Roaming \\ Composer \\ vendor \\ symfony \\ process \\ Pipes \\ Windo wsPipes.php第221行实现Counta ble的对象

cmd returning these errors multiple times and at the end the error following message receiving cmd多次返回这些错误,最后收到消息后的错误

Application ready! 准备就绪! Build something amazing. 建立一些令人惊叹

When I am trying to run this command php artisan serve then cmd return following error 当我试图运行此命令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 警告:require(D:\\ wamp64 \\ www \\ Laravel5.6 \\ PR / vendor / autoload.php):无法打开流:D:\\ wamp64 \\ www \\ Laravel5.6 \\ PR \\ artisan中没有此类文件或目录在里恩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 致命错误:require():在D:\\ wamp64中打开所需的'D:\\ wamp64 \\ www \\ Laravel5.6 \\ PR / ven dor / autoload.php'(include_path ='。; C:\\ php \\ pear')失败第18行\\ www \\ Laravel5.6 \\ PR \\ artisan

I have searched about it and found a couple of articles but all of them are saying this is about PHP version and some are saying I need to update the composer and some says I need to stop proxy or any anti-virus software. 我搜索过它并找到了几篇文章,但他们都说这是关于PHP版本的,有些人说我需要更新作曲家,有些人说我需要停止代理或任何防病毒软件。

I have done all above steps as instructed in different articles but still facing the same problem. 我按照不同文章的指示完成了上述所有步骤,但仍面临同样的问题。 I am still failed to install laravel 5.6 . 我仍然没有安装laravel 5.6

I would like to appreciate if someone guides me that how can I fix the issue. 如果有人指导我,我该如何解决问题,我将不胜感激。

Edited 编辑

After following the instruction of @laravel levaral answer, I am facing below following errors. 按照@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>]

The above errors are also in the cmd 上述错误也在cmd

Edited 编辑

I have tried all below method but still facing the errors 我已经尝试了以下所有方法,但仍面临错误

Try to install latest version of wamp and check with below command 尝试安装最新版本的wamp并使用以下命令检查

    composer update --no-scripts
    composer dump-autoload

Try running 试试跑步

composer update

in your project folder and it should install the vendor package that you need in order to run your project. 在您的项目文件夹中,它应该安装您运行项目所需的供应商包。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM