Laravel项目安装失败
短信预约 -IT技能 免费直播动态提醒
1、安装项目出现的问题
# 问题代码:D:\PHPSTUDY\PHPTutorial\WWW\LaravelStudy20211215>composer create-project laravel/laravel=7.25.0 --prefer-dist ./Creating a "laravel/laravel=7.25.0" project at "./"https://repo.packagist.org could not be fully loaded (curl error 28 while downloading https://repo.packagist.org/packages.json: Operation timed out after 10005 milliseconds with 0 out of 0 bytes received), package information was loaded from the local cache and may be out of date [Composer\Downloader\TransportException] curl error 28 while downloading https://repo.packagist.org/p2/laravel/laravel.json: Operation timed out after 30001 0 milliseconds with 0 out of 8447 bytes receivedcreate-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--add-repository] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--remove-vcs] [--no-install] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--ask] [--] [<package>] [<directory>] [<version>]
解决方式:
# 连续运行以下的三行代码之后再重新创建Laravel项目就成功了composer config -l -gcomposer config -g repo.packagist composer https://mirrors.aliyun.com/composer/composer config -g --unset repos.packagist
来源地址:https://blog.csdn.net/qq_40862118/article/details/121986320
免责声明:
① 本站未注明“稿件来源”的信息均来自网络整理。其文字、图片和音视频稿件的所属权归原作者所有。本站收集整理出于非商业性的教育和科研之目的,并不意味着本站赞同其观点或证实其内容的真实性。仅作为临时的测试数据,供内部测试之用。本站并未授权任何人以任何方式主动获取本站任何信息。
② 本站未注明“稿件来源”的临时测试数据将在测试完成后最终做删除处理。有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341