找不到命令:流

command not found: flow

我遵循 npmbabel 的 Flow installation 指南,当我进入第二阶段时 flow init 我不断收到错误消息 zsh command not found: flow。为了 testing/debugging 目的,我将 flow 安装到我的项目(我的 Gatsby 博客的一个分支)中。它不是全局安装的,这是 Flow 文档所说的最佳实践:

Flow works best when installed per-project with explicit versioning rather than globally.

我一直遇到与 Lume 类似的问题 returns zsh command not found: lume

如果我输入echo $PATH

冒号分隔的列表应该有 user/local/.deno/bin:$PATH 但它不在那里。如果我通过 运行ning 添加它:

export PATH="/Users/yourUserName/.deno/bin:$PATH"

比我能运行lume commands。但是,当我第二天尝试 运行 lume commands 时,由于错误再次出现,我不得不再次经历整个过程...

我今天在这里的问题是关于 Flow 错误并对其进行排序。我只提到 Lume 错误,因为它让我相当确定 $Path 或我的 Zsh 配置中的某些东西搞砸了。我只是不确定是什么。唯一需要注意的是,Deno 是全局安装的,而 Flow 是直接安装到我的项目中的…… 那么,也许相同语法的两个错误是完全不同的?

提前感谢您的任何 guidance/suggestions。干杯!

我看到了 2017 年的 this 视频,主持人遇到了 flow 无法在项目中工作的问题,因此他在全球范围内安装了它。我试了一下,流程错误 zsh command not found: flow 已解决...