2017-03-14 21:35
浏览 177

使用composer删除库的正确方法是什么? [关闭]

I've been install 2 libraries into my php project. Now I want to remove on of them because I've install the wrong library (my bad). Is it okay if I just delete the folder ? If there is another way to do that correctly, please tell me.

图片转代码服务由CSDN问答提供 功能建议

我已经在我的php项目中安装了2个库。 现在我想删除它们,因为我安装了错误的库(我的坏)。 如果我删除文件夹可以吗? 如果有其他方法可以正确地做到这一点,请告诉我。

  • 写回答
  • 好问题 提建议
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • douzhaochan6468 2017-03-14 21:48

    Running the following command will remove the package from vendor (or wherever you install packages), composer.json and composer.lock. Change vendor/package appropriately.

    composer remove vendor/package
    解决 无用
    打赏 举报

相关推荐 更多相似问题