安装laravel --prefer-dist [英] installing laravel --prefer-dist

查看:136
本文介绍了安装laravel --prefer-dist的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在他们网站上关注Laravel安装 我碰到了这条线

I am following the Laravel installation on their website and I came across this line

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

现在,--prefer-dist部分的确切含义是什么?我看不到他们的文档.

Now, what exactly does the --prefer-dist part mean? I can't see anything on their documentation.

提前谢谢.

推荐答案

可在此处全部使用: https://getcomposer.org/doc/03-cli.md#install

-prefer-dist:与--prefer-source相反,如果可能,composer将从dist安装.这样可以大大加快构建的安装速度 服务器和其他用例,在这些情况下,您通常不运行 供应商.这也是一种避免git问题的方法,如果您 没有正确的设置.

--prefer-dist: Reverse of --prefer-source, composer will install from dist if possible. This can speed up installs substantially on build servers and other use cases where you typically do not run updates of the vendors. It is also a way to circumvent problems with git if you do not have a proper setup.

这篇关于安装laravel --prefer-dist的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆