解决composer安装laravel没有vendor目录

  • A+
所属分类:PHP

1、设置全局镜像

在linux或window的命令行,输入下面命令
composer config -g repo.packagist composer https://packagist.phpcomposer.com

2、设置局部镜像

进入项目目录,执行以下命令:

composer config repo.packagist composer https://packagist.phpcomposer.com

3、创建目录:

composer create-project --prefer-dist laravel/laravel project项目名,OK!!

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: