Warning: Pub installs executables into $HOME/.pub-cache/bin, which is not on your path.
You can fix that by adding this to your shell's config file (.bashrc, .bash_profile, etc.):
export PATH="$PATH":"$HOME/.pub-cache/bin"
打开~ > .bash_profile
把export PATH="$PATH":"$HOME/.pub-cache/bin"
添加进去,然后更新环境变量。
source ~/.bash_profile
修改配置需要重启编译器。