作曲家更新和作曲家安装有什么区别? [英] What are the differences between composer update and composer install?

查看:132
本文介绍了作曲家更新和作曲家安装有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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).

这篇关于作曲家更新和作曲家安装有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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