使用composer重新加载所有软件包 [英] reload all packages using composer

查看:589
本文介绍了使用composer重新加载所有软件包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以重新加载使用composer安装的所有软件包?我不确定我是否意外更改了软件包的来源,并且我的应用停止了工作,因此我想通过重新加载所有软件包来排除这种情况.

Is it possible to reload all the packages installed using composer? I'm not sure if I made an accidental change to the source of on of the packages, and my app stopped working so I want to rule this out by reloading all the packages.

推荐答案

通常,您只需擦除vendor/目录,然后运行composer install即可使所有内容从您的上一个已知状态(存储在composer.lock中)中恢复.但是,某些框架中的某些插件/自定义安装程序会将软件包放置在供应商目录之外,但据我所知,对于Laravel,您应该可以这样做.

You can generally just wipe the vendor/ directory and then run composer install to get everything back from your last known state (stored in composer.lock). Some plugins/custom installers in some frameworks however drop packages outside the vendor dir, but as far as I know with Laravel you should be ok doing this.

这篇关于使用composer重新加载所有软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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