asp.net - 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?
解决方案
在 ~/.zshrc 中写入:
export PATH="$HOME/.dotnet/tools:$PATH"
那应该这样做。
推荐阅读
- git - 从 git 存储库中永久删除提交 - git reset 和 git gc 不够
- css - CSS 上下文 onclick 菜单可在切换时更改 z-index 以允许覆盖的空间进行交互
- loops - SPSS Syntax - Do Repeat 中的变量嵌套循环
- ruby-on-rails - 为什么 Rails 在我运行测试时会创建许多测试模式?
- npm - npm 错误!吉普错误!使用 gulp 安装模块时不行
- python - 通过重复的 api 调用批量数据并通过 apache Beam 摄取到 bigquery
- cmake - TARGET_SONAME_FILE 指向封闭目录而不是文件——但仅在某些平台上
- email - 不要向收件人发送电子邮件
- apache-spark - Databricks - 将 Spark 数据帧转换为表:它是同一个数据源吗?
- optimization - 如何使用 Grunt 为每个字体文件获取完美的子集?