我的设备上剩余空间不多,是时候进行一些清理了......
我删除了很多东西,垃圾,卸载了未使用的应用程序、缓存......但是
我很久以前在 Mac 上安装了《英雄联盟》,brew
这个游戏非常大,所以我想像删除其他不再使用的应用程序一样删除它……
$ brew uninstall league-of-legends
==> Uninstalling Cask league-of-legends
Warning: It seems there is already an App at '/usr/local/Caskroom/league-of-legends/latest/League of Legends.app'; overwriting.
==> Removing App '/usr/local/Caskroom/league-of-legends/latest/League of Legends.app'
==> Backing App 'League of Legends.app' up to '/usr/local/Caskroom/league-of-legends/latest/League of Legends.app'
cp: /usr/local/Caskroom/league-of-legends/latest/League of Legends.app/Contents/LoL/Game/DATA/FINAL/Champions/Lillia.wad.client: No space left on device
cp: /usr/local/Caskroom/league-of-legends/latest/League of Legends.app/Contents/LoL/Game/DATA/FINAL/Champions/Neeko.wad.client: No space left on device
cp: /usr/local/Caskroom/league-of-legends/latest/League of Legends.app/Contents/LoL/Game/DATA/FINAL/Champions/Kayn.fr_FR.wad.client: No space left on device
[...] and much more files...
就像brew
在卸载之前做了备份一样。我尝试force
卸载,但出现了同样的错误:
$ brew uninstall league-of-legends --force
你们知道如何处理这个问题吗?谢谢
答案1
将我对原始问题的评论转换为答案,因为这对 Op 有帮助。
我建议他从“应用程序”文件夹(在 Finder 或终端中)手动删除该应用程序并清空“废纸篓”。他进一步删除了 homebrew 目录下的下载的 cask,然后才能够使用“brew uninstall”功能。