我刚安装 stagehand在我的 Mac 上,安装顺利进行,但是当我尝试使用它来生成新的 dart 应用程序时,我收到此错误 -bash: stagehand: command not found
.有任何想法吗?
最佳答案
我看过我的机器,stagehand 在 ~/.pub-cache/bin 中,我想我必须手动添加到我的 .profile 中:export PATH=$PATH:~/.pub-cache/bin
(编辑:我刚刚在 pub
页面中找到了确认信息:https://www.dartlang.org/tools/pub/cmd/pub-global#running-a-script-from-your-path)
关于dart - 尝试创建新应用程序时找不到 stagehand 命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43763865/