I am getting this error while installing composer (sudo composer install).
Can anyone help me out?
Cannot create cache directory /home/tanmay/.composer/cache/repo/https---packagist.org/, or directory is not writable. Proceeding without cache
Cannot create cache directory /home/tanmay/.composer/cache/files/, or directory is not writable. Proceeding without cache
[Composer\Downloader\TransportException]
The "https://packagist.org/packages.json" file could not be downloaded:
SSL operation failed with code 1. OpenSSL Error messages:
error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
Failed to enable crypto
failed to open stream: operation failed
Related
The Composer installer script was not successful [exit code 1]. Your proxy settings may be causing this error. Script Output: The "https://getcomposer.org/versions" file could not be downloaded: failed to open stream: No connection could be made because the target machine actively refused it.
I want to use composer to create laravel project
I'm trying to download the laravel 5.3 installer via composer (in windows 10) as the official documentation says, but when i execute this command in the console
composer global require "laravel/installer"
after a while i get this:
Using version ^1.3 for laravel/installer
./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Installing symfony/process (v3.1.7)
Loading from cache
Failed to download symfony/process from dist: Invalid argument (C:\Users\Nicolßs\AppData\Roaming\Composer\vendor/symfony/process/510d7cdfaba888079a59ff4e97c9d707)
Now trying to download from source
- Installing symfony/process (v3.1.7)
Cloning 66de154ae86b1a07001da9fbffd620206e4faf94 from cache
Installation failed, deleting ./composer.json.
[RuntimeException]
Failed to clone https://github.com/symfony/process.git via https, ssh protocols, aborting.
- https://github.com/symfony/process.git
Cloning into 'C:\Users\Nicolás\AppData\Roaming\Composer\vendor\symfony\process'...
"git-upload-pack 'C:/Users/Nicolás/AppData/Local/Composer/vcs/https---github.com-symfony-process.git'": git-upload-pack 'C:/Users/Nicolás/AppData/Local/Composer/vcs/https---github.com-s
ymfony-process.git': No such file or directory
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: The remote end hung up unexpectedly
- git#github.com:symfony/process.git
Cloning into 'C:\Users\Nicolás\AppData\Roaming\Composer\vendor\symfony\process'...
Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Aparently, i can't clone the symfony/process repo. But then i try to do that manually with gitclone and i can connect and clone the repo perfectly.
Please help.
References
https://laravel.com/docs/5.3
If what your aim to do is develop with laravel. Get this tool: laragon at https://laragon.org/
It makes laravel development on windows cool.
I'm trying to install the Composer on W7 64x. Using the installer for Windows that the site Composer provides (Composer-setup.exe).
I have installed the Wampserver 2.5 with php5.5.12 and Apache2.4.9. The openssl is enabled in php.ini.
I'm having the following errors in the installation:
Download failed: file_get_contents(): SSL operation failed with code 1. OpenSSL Error
messages:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
file_get_contents(): Failed to enable crypto
file_get_contents(https://getcomposer.org/composer.phar): failed to open stream: operation
failed
Download failed: file_get_contents(): SSL operation failed with code 1. OpenSSL Error
messages:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
file_get_contents(): Failed to enable crypto
file_get_contents(https://getcomposer.org/composer.phar): failed to open stream: operation
failed
Download failed: file_get_contents(): SSL operation failed with code 1. OpenSSL Error
messages:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
file_get_contents(): Failed to enable crypto
file_get_contents(https://getcomposer.org/composer.phar): failed to open stream: operation
failed
The download failed repeatedly, aborting.
I installed xampp and WPN XM, but using the php.exe of both shows the following error:
Connection Error [ERR_CONNECTION]: Unable to connect to getcomposer.org
Request to https://getcomposer.org/installer failed with errors:
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
Ensure that the SSL certs are installed and found by PHP.
In php.ini:
curl.cainfo=/path/to/ssl-certs/ca-bundle.crt
openssl.cafile=/path/to/ssl-certs/ca-bundle.crt
If certs are missing: download a cert bundle from http://curl.haxx.se/ca/cacert.pem and save as ca-bundle.crt.
(Or simply use a server stack for Windows, which ships Composer right out-of-the-box: WPN-XM)
Running curl -sS https://getcomposer.org/installer | php gives me the following error:
#!/usr/bin/env php
All settings correct for using Composer
Downloading...
Could not create file /private/etc/apache2/users/composer.phar: fopen(/private/etc/apache2/users/composer.phar): failed to open stream: Permission denied
Download failed: fopen(/private/etc/apache2/users/composer.phar): failed to open stream: Permission denied
fwrite() expects parameter 1 to be resource, boolean given
Downloading...
Could not create file /private/etc/apache2/users/composer.phar: fopen(/private/etc/apache2/users/composer.phar): failed to open stream: Permission denied
Download failed: fopen(/private/etc/apache2/users/composer.phar): failed to open stream: Permission denied
fwrite() expects parameter 1 to be resource, boolean given
Downloading...
Could not create file /private/etc/apache2/users/composer.phar: fopen(/private/etc/apache2/users/composer.phar): failed to open stream: Permission denied
Download failed: fopen(/private/etc/apache2/users/composer.phar): failed to open stream: Permission denied
fwrite() expects parameter 1 to be resource, boolean given
The download failed repeatedly, aborting.
Not sure what permissions need to be changed to get this to work. I'm new to Mac OS. I've tried running the same command using sudo but to no avail. Any ideas on what needs to be changed in the apache2 directory to get this to work?
A simple chmod 777 on the users folder fixed the issue. Damn I feel like an idiot sometimes.
I've downloaded laravel 4 starter kit, I already have composer but when I run composer install to install the starter kit I get this error:
[Composer\Downloader\TransportException]
The "https://api.github.com/repos/symfony/Translation/zipball/v2.3.1" file
could not be downloaded: php_network_getaddresses: getaddrinfo failed: No such host is known.
failed to open stream: php_network_getaddresses: getaddrinfo failed: No such host is known.
The error occurs when there is issue in your network connectivity such as packet loss from your network to the destination host. Try reset your network connection and try again to download using the composer.