dart_frog icon indicating copy to clipboard operation
dart_frog copied to clipboard

fix: zsh: command not found: dart_frog

Open NBPTruong opened this issue 1 year ago • 3 comments

after I write this line "dart pub global activate dart_frog_cli" it shows the following warning line "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"" and when I write the command line "dart_frog create my_project" then it says "zsh: command not found: dart_frog" Please guide me to fix it. Thanks a lot. image

NBPTruong avatar Jan 29 '24 04:01 NBPTruong

Hi @NBPTruong 👋 !

I believe this is not a Dart Frog related issue, but instead a problem you're experiencing because you have not added $HOME/.pub-cache/bin to your path.

Assuming you're using the Z shell (zsh) you may simply resolve by opening your file ~/.zshrc and adding:

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

Let me know if this helps 💙 🙌 !

alestiago avatar Jan 29 '24 13:01 alestiago

I still get the same error image

NBPTruong avatar Jan 30 '24 04:01 NBPTruong

After adding Path, you should run source ~/.zshrc

wamynobe avatar Feb 10 '24 05:02 wamynobe

Hi @NBPTruong, seems like this is a local setup issue and not something that would be a code change or fix in Dart Frog. Given that I'm closing this out as "won't fix"

tomarra avatar Mar 19 '24 16:03 tomarra