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

如何卸载通过npx terminalgpt安装的terminalgpt包?

卸载 terminalgpt 的解决方法
  • 先确认包是否全局安装:
    执行命令 npm list -g terminalgpt,若返回具体路径则说明已全局安装;若提示不存在,说明npx terminalgpt只是临时运行,无全局残留,无需卸载。
  • 缓存问题导致卸载失败的处理:
    1. 强制清除npm缓存:npm cache clean --force
    2. 重新执行全局卸载:npm uninstall -g terminalgpt
  • 手动删除残留文件:
    1. 获取全局npm包路径:执行 npm prefix -g,Mac/Linux 通常为 /usr/local,Windows 一般是 C:\Users\<你的用户名>\AppData\Roaming\npm
    2. 进入该路径下的 lib/node_modules 文件夹,删除 terminalgpt 目录
    3. 进入路径下的 bin 目录(Mac/Linux)或直接在npm根目录(Windows),删除 terminalgpt 相关可执行文件(如 terminalgpt、terminalgpt.cmd)
  • 其他包管理器的卸载方式:
    若使用yarn或pnpm安装,对应执行 yarn global remove terminalgpt 或 pnpm remove -g terminalgpt

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.08.05 14:55:21