1. Warning: Pub installs executables into $HOME/.pub-cache/bin, which is not on your path.
    2. You can fix that by adding this to your shell's config file (.bashrc, .bash_profile, etc.):
    3. export PATH="$PATH":"$HOME/.pub-cache/bin"

    打开~ > .bash_profileexport PATH="$PATH":"$HOME/.pub-cache/bin"添加进去,然后更新环境变量。

    1. source ~/.bash_profile

    修改配置需要重启编译器。