I am unable to install Laravel 5.6 on my WAMP server. I have following setup
- PHP version 7.1.3
- Composer version 1.6.3 2018-01-31
When I am trying to install the Laravel application through Composer, I am receiving the following error in cmd
:
Warning: count(): Parameter must be an array or an object that implements Countable in C:\Users\MyName\AppData\Roaming\Composer\vendor\symfony\process\Pipes\WindowsPipes.php on line 221
cmd
is returning these errors multiple times and at the end, the error following message receiving
Application ready! Build something amazing.
When I am trying to run this command php artisan serve
then cmd
returns the following error.
Warning: require(D:\wamp64\www\Laravel5.6\PR/vendor/autoload.php): failed to open stream: No such file or directory in D:\wamp64\www\Laravel5.6\PR\artisan on line 18
Fatal error: require(): Failed opening required 'D:\wamp64\www\Laravel5.6\PR/vendor/autoload.php' (include_path='.;C:\php\pear') in D:\wamp64\www\Laravel5.6\PR\artisan on line 18
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.
I have done all the above steps as instructed in different articles, but I am still facing the same problem. I still failed to install Laravel 5.6.
How can I fix the issue?
After following the instructions of laravel levaral's answer, I am facing the following errors.
[Composer\Exception\NoSslException]
The openssl extension is required for SSL/TLS protection but is not available. 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] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--remove-vcs] [--no-install] [--ignore-platform-reqs] [--] [] [] []
The above errors are also in the cmd
.
I have tried all the methods in the answers, but I am still facing the errors.