简体   繁体   English

无法安装laravel

[英]Failed to install laravel

I was installing laravel framework by composer in visual studio code. 我在Visual Studio代码中由作曲者安装laravel框架。 composer create-project laravel/laravel ems but it failed to install the laravel. 作曲家创建了laravel / laravel ems项目,但是无法安装laravel。 here is the message $ composer create-project laravel/laravel ems Installing laravel/laravel (v5.5.0) - Installing laravel/laravel (v5.5.0): Downloading (failed) Downloading (failed) Downloading (failed) Failed to download laravel/laravel from dist: The " https://api.github.com/repos/laravel/laravel /zipball/a6c68c24c9938beef0128c3288502b8fbdf8e93d" file could not be downloaded: failed to open stream: A connection at tempt failed because the connected party did not properly respond after a period of time, or established connection fai led because connected host has failed to respond. 这是消息$ composer create-project laravel / laravel ems安装laravel / laravel(v5.5.0)-安装laravel / laravel(v5.5.0):下载(失败)下载(失败)下载(失败)无法下载laravel / dist的laravel:无法下载“ https://api.github.com/repos/laravel/laravel / zipball / a6c68c24c9938beef0128c3288502b8fbdf8e93d”文件:无法打开流:处于诱惑的连接失败,因为连接方未正确响应一段时间后,或由于连接的主机未能响应而导致建立连接失败。

Now trying to download from source

- Installing laravel/laravel (v5.5.0): Cloning a6c68c24c9 from cache -安装laravel / laravel(v5.5.0):从缓存中克隆a6c68c24c9

[RuntimeException] Failed to clone https://github.com/laravel/laravel.git via https, ssh protocols, aborting. [RuntimeException]无法通过https,ssh协议克隆https://github.com/laravel/laravel.git ,异常终止。 - https://github.com/laravel/laravel.git Cloning into 'C:\\xampp\\htdocs\\ems'... fatal: unable to access ' https://github.com/laravel/laravel.git/ ': Failed to connect to github.com port 443: Tim ed out - git@github.com:laravel/laravel.git Cloning into 'C:\\xampp\\htdocs\\ems'... ssh: connect to host github.com port 22: Connection timed out fatal: Could not read from remote repository. -https: //github.com/laravel/laravel.git克隆到'C:\\ xampp \\ htdocs \\ ems'...致命:无法访问' https://github.com/laravel/laravel.git/ ' :无法连接到github.com端口443:提要退出-git@github.com:laravel / laravel.git克隆到'C:\\ xampp \\ htdocs \\ ems'... ssh:连接到主机github.com端口22:连接超时致命:无法从远程存储库读取。

Please make sure you have the correct access rights
and the repository exists.

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] [--] [] [] [] 创建项目[-s |-稳定稳定性] [-首选源] [-首选-dist] [-存储库存储库] [-存储库URL存储库URL] [--dev] [- no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--no-install] [--ignore-platform-reqs] [-] [] [] []

I think you miss something "--prefer-dist" 我想您会错过一些“ --prefer-dist”

composer create-project --prefer-dist laravel/laravel projectName

look at the documentation https://laravel.com/docs/5.5 看看文档https://laravel.com/docs/5.5

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM