I try to install Laravel 5.4 in windows 10 but during the installation it gives this error :
The "https://getcomposer.org/versions" file could not be downloaded:
php_network_getaddresses: getaddrinfo failed: Hôte inconnu. failed to
open stream: php_network_getaddresses: getaddrinfo failed: Hôte
inconnu.
open the terminal (Win + R) and run composer check if it works or not ?
if it works then you have to refresh the web server by running this command .
sudo /etc/init.d/apache2 restart OR sudo /etc/init.d/apache restart
else install the composer once again . Watch here
then run this command for installing laravel
composer create-project --prefer-dist laravel/laravel blog "5.4.*"
Related
Laravel 6.x does come with UI components installed.
The commands I tried were:
composer require laravel/ui --dev
php artisan ui vue --auth
but when I tried the first command, the following error occurred:
Installation failed, reverting ./composer.json to its original content.
[Composer\Downloader\TransportException]
The "http://repo.packagist.org/p/dnoegel/php-xdg-base-dir%2413f0252465cdc3c
27cde69055504a5a15fac72d5202de71c218bb397117734c7.json" file could not be d
ownloaded: php_network_getaddresses: getaddrinfo failed: nodename nor servn
ame provided, or not known
failed to open stream: php_network_getaddresses: getaddrinfo failed: nodena
me nor servname provided, or not known
What is the correct command(s) in order to install Laravel 6.x UI components?
composer require laravel/ui
php artisan ui:auth
for more info you can see here https://laravel-news.com/running-make-auth-in-laravel-6
I faced the same issue; the following command solved the problem for me for laravel "6.*"
composer require laravel/ui "^1.0" --dev
I want to install laravel through composer with :
$ composer create-project --prefer-dist laravel/laravel DemoTest
but every time i do that composer shows a message:
[Composer\Downloader\TransportException] The
"http://packagist.org/p/provider-2013%244440cd3f9b7aec0de3e4f3486e61b7e348d74d03a0bd6a61b5b8a514e105
2c4d.json" file could not be downloaded: failed to open stream: HTTP
request failed!
Can you try
composer clear-cache
then
composer -vvv
after that try running the install command for laravel, it worked for me though
For Install OroCRM in windows i have followed -> https://stackoverflow.com/a/40929643/8416476 after successful the command git clone -b 1.9.0 https://github.com/orocrm/platform-application.git orocrm then i try to run composer install --prefer-dist --no-dev Here i am getting error.
Installing composer/composer (1.0.0-p1): Downloading (failed) Failed to download composer/composer from dist: The
"https://api.github.com/repos/orocrm/composer/zipball/833ce984264204e7d6576ab082660105c7d8f04c"
file could not be downloaded (HTTP/1.1 404 Not Found)
How can i solve the issue.
Note : OroCRM in Windows
Install composer globally using https://getcomposer.org/Composer-Setup.exe
Then just run composer install --prefer-dist --no-dev from within application folder. This error is very odd and why are you trying to download 1.9.0 version? It is copy paste error or you specifically need this one?
Try Linux platform with Xampp for better convenient. refer https://oroinc.com/orocrm/doc/current/system-requirements#system-requirements
I'm trying to install laravel 5.7 by using this command
> composer create-project --prefer-dist laravel/laravel new_project dev-develop
But it's reflecting following error, also i disabled antivirus and firewall.
Installing laravel/laravel (dev-develop
b0651d2467f1428eadc505e1b3b4f5678611927c)
- Installing laravel/laravel (dev-develop develop): Loading from cache Created project in new_project
#php -r "file_exists('.env') || copy('.env.example', '.env');" Loading composer repositories with package information Updating
dependencies (including require-dev) Package operations: 71 installs,
0 updates, 0 removals
- Installing vlucas/phpdotenv (v2.5.1): Downloading (failed) Downloading (failed) Downloading (failed) Failed to download
vlucas/phpdotenv from dist: The
"https://api.github.com/repos/vlucas/phpdotenv/zipball/8abb4f9aa89ddea9d52112c65bbe8d0125e2fa8e"
file could not be downloaded : SSL operation failed with code 1.
OpenSSL Error messages: error:1416F086:SSL
routines:tls_process_server_certificate:certificate verify failed
Failed to enable crypto failed to open stream: operation failed
Now trying to download from source
- Installing vlucas/phpdotenv (v2.5.1): Cloning 8abb4f9aa8
[RuntimeException] Failed to clone
https://github.com/vlucas/phpdotenv.git via https,ssh protocols,
aborting.
- https,ssh://github.com/vlucas/phpdotenv.git
Cloning into 'D:\xamppro\htdocs\neologicx.com\new_project\vendor\vlucas\phpdotenv'...
fatal: I don't handle protocol 'https,ssh'
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] [--no-install] [--ignore-platform-reqs] [--] [] [] []
OpenSSL Installed
and enabled
Okay, my problem resolved by removing '%temp%' files from windows.
After that i got content-length mismatch problem resolved from this Composer Content-Length Mismatch
And then again i tried this "composer create-project laravel/laravel laravelproject1" it worked.
Thanks Alot everyone.
composer global require "laravel/installer"
--
laravel new myProject
Run these commands in order and you should be fine.
If you prefer to use the composer create project command, then run this:
composer create-project --prefer-dist laravel/laravel blog
try composer clear-cache then composer self-update
Please try this.
install laravel 5.7:
composer create-project laravel/laravel laravelproject1
Whenever i install laravel i get this error. Is there a problem with my system or there is any firewell issue which is blocking the installation.
I am using ubuntu with PHP 5.6.30-7+deb.sury.org~trusty+1 (cli).
[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
Composer have to use a proxy.
Linke here: PHP Composer behind http proxy and Composer cannot download files
It will be like :
export HTTP_PROXY="http://my-corp-proxy.mcdonalds"
And then :
php composer.phar install