dart - 尝试创建新应用程序时找不到 stagehand 命令

标签 dart

我刚安装 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/

相关文章:

flutter - 迭代 Dart 中的对象列表并将对象的属性呈现为 flutter 中的列表

flutter - 为什么catchError无法捕获错误?

flutter - 如何在列中对齐小部件?

flutter - 计算 : Illegal argument in isolate message : (object is a closure - Function '<anonymous closure>' :. )

ios - Flutter - 使用 google_maps_webservice 和 google_maps_flutter 的附近地点

flutter - 迁移到 Null Safety 后出现错误 : Type argument 'T' doesn't conform to the bound 'Object' of the type variable 'T' on 'GetIt.call' .

android - 缩小 flutter 底部导航栏小部件之间的间隙

angular - 路由到另一页时出现Angular + Dart JS错误

flutter - Dart 中 Thread、Isolate 和 Process 的区别

dart - 从函数 'List<Country> can'返回类型 'fetchCountries' t的值,因为它的返回类型为 'Future<Country>'