终端执行命令
flutter pub global activate webdevpub global activate stagehandpub getwebdev serve
注意一些环境变量
export PATH="$PATH":"$HOME/flutter/.pub-cache/bin"export DART_HOME=/Users/chenhao/flutter/bin/cache/dart-sdk/binexport PATH=${DART_HOME}:${PATH}export PATH="$PATH":"$HOME/.pub-cache/bin"
添加完环境变量后记得要source一下
source ~/.bash_profile