簡體   English   中英

無法在 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 個文件並編輯它們嗎? 最好

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

或者輸入echo export PATH=\$PATH:\$HOME/.pub-cache/bin >> ~/.zshrc

如果你使用.bashrc

輸入echo export PATH=\$PATH:\$HOME/.pub-cache/bin >> ~/.bashrc

您可以使用 shotrcuts cmd + shift + 在home DIR中找到並查看該文件.

注意:之后重啟你的終端

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM