You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用brew uninstall --force node报错:无名为‘–force’的可用公式

解决brew卸载node时的"No available formula with the name '–force'"错误

问题原因

你输入的命令里,–force用的是中文全角破折号,brew误将它识别为要卸载的软件包名称,而非命令参数,因此抛出错误。

解决步骤

  1. 执行正确的卸载命令,使用英文半角双短横线的--force参数:
    brew uninstall --force node
    
  2. (可选)如果需要彻底清理node相关残留文件,可额外执行:
    rm -rf /usr/local/lib/node_modules
    rm -rf ~/.npm
    

内容的提问来源于stack exchange,提问作者Huckleberry Carignan

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.13 01:57:01