flutter VSCode搭建web项目

终端执行命令

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
上一篇:IDEA下载gitHub私有仓库代码(github ssh key生成方法)(git@github.com:Permission Denied(publickey)解决)


下一篇:csdn_export_md