终端执行命令

flutter pub global activate webdev
pub global activate stagehand

pub get
webdev serve

注意一些环境变量

export PATH="$PATH":"$HOME/flutter/.pub-cache/bin"

export DART_HOME=/Users/chenhao/flutter/bin/cache/dart-sdk/bin
export PATH=${DART_HOME}:${PATH}

export PATH="$PATH":"$HOME/.pub-cache/bin"

添加完环境变量后记得要source一下

source ~/.bash_profile

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-05
  • 2021-08-18
  • 2021-09-19
  • 2021-09-03
  • 2021-08-20
  • 2021-11-01
猜你喜欢
  • 2022-12-23
  • 2021-10-23
  • 2021-10-20
  • 2021-07-26
相关资源
相似解决方案