无法在 macos 中激活 webdev
Can't activate webdev in macos
我在我的 mac 上安装了 Dart,当创建新的 web-simple 项目 时,同时激活 web-dev 我看到一个警告 :
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"
你能帮我找到 shell 个文件 并编辑它们吗?
最佳
在.zshrc
的末尾添加export PATH="$PATH":"$HOME/.pub-cache/bin"
行
或输入echo export PATH=$PATH:$HOME/.pub-cache/bin >> ~/.zshrc
如果您使用 .bashrc
输入echo export PATH=$PATH:$HOME/.pub-cache/bin >> ~/.bashrc
您可以使用快捷方式 cmd
+ shift
+ .
在 home DIR
中找到并查看该文件
注意:之后重启终端
我在我的 mac 上安装了 Dart,当创建新的 web-simple 项目 时,同时激活 web-dev 我看到一个警告 :
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"
你能帮我找到 shell 个文件 并编辑它们吗? 最佳
在.zshrc
export PATH="$PATH":"$HOME/.pub-cache/bin"
行
或输入echo export PATH=$PATH:$HOME/.pub-cache/bin >> ~/.zshrc
如果您使用 .bashrc
输入echo export PATH=$PATH:$HOME/.pub-cache/bin >> ~/.bashrc
您可以使用快捷方式 cmd
+ shift
+ .
home DIR
中找到并查看该文件
注意:之后重启终端