gpt4 book ai didi

php - 有没有办法用 Composer 卸载开发依赖项?

转载 作者:IT老高 更新时间:2023-10-28 11:59:26 38 4
gpt4 key购买 nike

我想卸载(而不是从我的 composer.json 中删除)项目的开发依赖项。

有没有简单的方法可以做到这一点?

最佳答案

使用 --no-dev 运行 installupdate 现在应该删除开发要求及其依赖项。

出于历史目的的原始答案:

Actually no. You can manually rm -rf them from the vendor dir of course, but composer offers no way to uninstall the dev requirements after you did an install with --dev. It's not a huge use case but could warrant a new command line switch, if you would like to report an issue on github.

关于php - 有没有办法用 Composer 卸载开发依赖项?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13744340/

38 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com