I have been trying to install Laravel (Latest version) on my Mac machine. I have all prerequisites such as php, composer. Just tried to execute below commands but it is giving errors.
/Applications/XAMPP/xamppfiles/bin/php composer.phar create-project laravel/laravel {directory} 4.2 --prefer-dist
Where,
-- /Applications/XAMPP/xamppfiles/bin/php - Mac php path
-- composer.phar - Composer file
After executing the above command, I am getting error like below. I am using my office network, could that cause a firewall issue?
Error:
[Composer\Downloader\TransportException]
The "https://packagist.org/packages.json" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed
Failed to enable crypto
failed to open stream: operation failed
About my Mac:
OS X EI Captain (Version 10.11.6)
In this case my suggestion is using Laravel Valet - never had issues with it. It will save you tones of time after you will start using it.
https://laravel.com/docs/5.4/valet
Also try to use global composer and clean composer's cache before doing that.
I think it was temporary issue.
Related
Tried to create a symfony project and got an error.
So I entered in the console:
composer create-project symfony/website-skeleton my-project
console output:
You are running Composer with SSL/TLS protection disabled.
Your configuration does not allow connections to http://packagist.org/packages.json. See https://getcomposer.org/doc/06-
config.md#secure-http for details.
http://packagist.org could not be fully loaded, package information was loaded from the local cache and may be out of da
te
[Composer\Downloader\TransportException]
The "https://packagist.org/p/symfony/website-skeleton%24e4840857811b44fdd2effbe71a2cd41d6c17c10fe4f92248daacc2c4e0c
ecd67.json" file could not be downloaded: Unable to find the wrapper "https" - did you forget to enable it when you
configured PHP?
failed to open stream: No such file or directory
Take a look at this solution, it might help you:
Installing Composer for Windows - unable to find wrapper "https"
It seems that you do not have openssl enabled in your php
Hey guys trying to install the slim php api framework locally via composer but everytime I try to run
composer require slim/slim "^3.0"
the following error happens:
[Composer\Downloader\TransportException]
The "https://getcomposer.org/version" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
Failed to enable crypto
failed to open stream: operation failed
I am doing all of this on my mac running macOS and have no idea how to solve this issue can anyone help me
It's an OpenSSL issue. You can download root certificates with
wget https://curl.haxx.se/ca/cacert.pem
then edit openssl.cafile parameter in your php.ini configuration file:
openssl.cafile=/path/to/cacert.pem
If you aren't able to do it you can use composer's disable-tls option.
composer config -g -- disable-tls true
Enabling this is a security risk and is NOT recommended.
I was trying to install Laravel at work and I could not do it, I know there might be a proxy problem because there some restrictions but I am not sure, this is the error message I get when I run the install on terminal
I run this command
composer create-project --prefer-dist laravel/laravel testproject
and I got this error message
The "https://packagist.org/packages.json" file could not be downloaded: failed to open stream: Operation timed out
Retrying with degraded mode, check https://getcomposer.org/doc/articles/troubleshooting.md#degraded-mode for more info
[Composer\Downloader\TransportException]
The "https://packagist.org/packages.json" file could not be downloaded: failed to open stream: No route to host
any ideas?
thanks
I found the slution!
is by adding the proxy at the beginning of the command like this
HTTP_PROXY="http;//yourproxy.something" composer create-project
--prefer-dist laravel/laravel testproject
est voila, it works :D
I used this command to create a new laravel project in the homestead:
composer create-project laravel/laravel Laravel
Then, the terminal show this error:
Failed to download laravel/laravel from dist: The "https://api.github.com/repos/laravel/laravel/zipball/7bddbdc2a1f8d9c23205707e74455d74684e3031" file could not be downloaded: failed to open stream: Connection timed out
Now trying to download from source
I used curl command to get the content, failed again:
curl https://api.github.com/repos/laravel/laravel/zipball/7bddbdc2a1f8d9c23205707e74455d74684e3031
However, when I enter the address in the broswer(Firefox), it work! I can download the file by the browser!
Any help is greatly appreciated.
This is probably the common issue about the reliability of the github downloads. It fails regularly.
A workaround is to increase COMPOSER_PROCESS_TIMEOUT (defaults to 300) and force installing from source with the --prefer-source option:
COMPOSER_PROCESS_TIMEOUT=2000
composer create-project laravel/laravel Laravel --prefer-source
I need to use composer in my Windows installed xampp, php 5.4.7. everytime I run
$ php composer.phar install
I keep getting this error:
[Composer\Downloader\TransportException] The
"https://packagist.org/packages.json" file could not be downloaded:
failed to open stream: The system detected an invalid pointer
address in attempting to use a pointer argument in a call.
What could be the issue
? Any help please.