尝试创建新应用程序时未找到stagehand命令

问题描述:

我刚刚在我的Mac上安装了stagehand,并且安装顺利,但当我尝试使用它产生新的dart应用程序时,出现此错误-bash: stagehand: command not found。有任何想法吗?尝试创建新应用程序时未找到stagehand命令

我看我的机器,和舞台工作人员是在〜/的.pub缓存/ bin中,我想我不得不手动添加到我的.profile:

export PATH=$PATH:~/.pub-cache/bin

(编辑:我刚刚发现确认信息已隐藏在pub页面:https://www.dartlang.org/tools/pub/cmd/pub-global#running-a-script-from-your-path

+0

手动添加路径 –