首页 > 解决方案 > microsoft.dotnet-httprepl 已安装,但在 mac 中找不到 httprepl 命令

问题描述

我用命令安装了 httprepl

dotnet tool install -g Microsoft.dotnet-httprepl 

httprepl 被列为带有命令的已安装包

dotnet tool list -g

Package Id                     Version      Commands
----------------------------------------------------
microsoft.dotnet-httprepl      5.0.2        httprepl

但是当我运行命令 httprepl 时,它说找不到命令。

httprepl
zsh: command not found: httprepl

如何在 mac 上运行 httprepl?

标签: asp.net.net

解决方案


在 ~/.zshrc 中写入:

export PATH="$HOME/.dotnet/tools:$PATH"

那应该这样做。


推荐阅读