I am stuck in laravel-spark installation. Below is the error coming whenever I am trying to install via composer.
Installing laravel/spark-aurelius (v6.0.11): Downloading (failed) Failed to download laravel/spark-aurelius from dist: The "https://api.github.com/repos/laravel/spark-aurelius/zipball/9e96a2a3aa26801d141ebc40a2d92533dc6f926d" file could not be downloaded (HTTP/1.1 404 Not Found)
Now trying to download from a source
Here are complete details in a screenshot:
Also, the token is successfully authenticated now the below error comes.
[RuntimeException]
Failed to execute git clone --no-checkout "https://:#github.com/laravel/spark-aurelius.git" "D:\Ampps\www\upt
\vendor\laravel\spark-aurelius" && cd /D "D:\Ampps\www\upt\vendor\laravel\spark-aurelius" && git remote add compose
r "https://:#github.com/laravel/spark-aurelius.git" && git fetch composer
Cloning into 'D:\Ampps\www\upt\vendor\laravel\spark-aurelius'...
remote: Repository not found.
fatal: repository 'https://:#github.com/laravel/spark-aurelius.git/' not found
Related
You need to install the project, follow the instructions, docker-compose up is successfully completed, however, when executing the docker-compose exec php composer install -o --prefer-dist command, the following message appears:
Loading composer repositories with package information
Installing dependencies (including require-dev) from the lock file
Package operations: 244 installations, 0 updates, 0 deletions
- Installation of yiisoft/yii2-composer (2.0.8): Download (failed)
Download (failed)
Download (failed) Failed to load yiisoft/yii2-composer from disk: "https://api.github.com/repos/yiisoft/yii2-composer/zipball/5c7ca9836cf80b34db265332a7f2f8438eb469b9 " file failed to load: stream failed to open: connection timeout expired
Now I'm trying to download from the source code
I assume that there is a problem with network access, but I do not understand what is the matter
os - ubuntu
environment - phpstorm
I'm having this error when I execute composer update in my laravel project (it's been working for years):
- Installing smatar/laravel-settings (1.3): Downloading (failed) Failed to download smatar/laravel-settings from dist: The "https://api.github.com/repos/SMATAR/laravel-settings/zipball/7b76462fe90224688c632d90c5f84a28c0f6e2bc" file could not be downloaded (HTTP/1.1 404 Not Found)
Now trying to download from source
- Installing smatar/laravel-settings (1.3): The authenticity of host 'github.com (18.231.5.6)' can't be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
Are you sure you want to continue connecting (yes/no)? yes
Cloning 7b76462fe9
[RuntimeException]
Failed to clone https://github.com/SMATAR/laravel-settings.git via https, ssh protocols, aborting.
- https://github.com/SMATAR/laravel-settings.git
Cloning into '/var/www/html/prod/web/vendor/smatar/laravel-settings'...
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/SMATAR/laravel-settings.git/'
- git#github.com:SMATAR/laravel-settings.git
Cloning into '/var/www/html/prod/web/vendor/smatar/laravel-settings'...
Warning: Permanently added the RSA host key for IP address '18.228.67.229' to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Package deleted from github: https://github.com/SMATAR/laravel-settings
Packagist page for package: https://packagist.org/packages/smatar/laravel-settings
You must contact with package publisher.
I want to install laravel through composer in WAMP environment. I got the following errors:
Failed to download laravel/laravel from dist: You must enable the openssl e
tension to download files via https
[RuntimeException]
Failed to clone https://github.com/laravel/laravel.git, git was not found,
check that it is installed and in your PATH env.
'git' is not recognized as an internal or external command,
program or batch file.
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 installed composer and downloaded the repository from github and I move all the files to htdocs/laravel-master directory and when I run composer install via cmd I got the following error