本文介绍了作曲家更新和作曲家安装有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
composer update
和 composer install
之间有什么区别?
运行composer update时,只需读取composer.json,安装依赖项并更新lockfile(或创建一个新的lockfile)。
What are the differences between composer update
and composer install
?
解决方案
When you run composer install it will look for a lock file and install whatever is contained in it, if it can't find one it'll read composer.json, install its dependencies and generate a lockfile.
When you run composer update it simply reads composer.json, installs the dependencies and updates the lockfile (or creates a new lockfile).
这篇关于作曲家更新和作曲家安装有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!