Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

stagehand command not found when trying to create new application

Tags:

dart

I just installed stagehand on my mac and the install went off without a hitch, but when I try using it to spawn a new dart application I get this error -bash: stagehand: command not found. Any ideas?

like image 726
Chaim Friedman Avatar asked May 03 '17 15:05

Chaim Friedman


1 Answers

I've looked at my machine, and stagehand is in ~/.pub-cache/bin which I think I had to add to my .profile manually:

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

(edit: I've just found the confirming information tucked away in the pub pages: https://www.dartlang.org/tools/pub/cmd/pub-global#running-a-script-from-your-path)

like image 79
Michael Davies Avatar answered Oct 16 '22 21:10

Michael Davies