1、安装项目出现的问题 # 问题代码:D:\PHPSTUDY\phpTutorial\WWW\LaravelStudy20211215>composer create-project laravel/
# 问题代码: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
--结束END--
本文标题: Laravel项目安装失败
本文链接: https://www.lsjlt.com/news/422492.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0