VeryGoodOpenSource / dart_frog

A fast, minimalistic backend framework for Dart 🎯
https://dartfrog.vgv.dev
MIT License
1.87k stars 150 forks source link

fix: zsh: command not found: dart_frog #1263

Closed NBPTruong closed 8 months ago

NBPTruong commented 9 months ago

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
alestiago commented 9 months ago

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 💙 🙌 !

NBPTruong commented 9 months ago

I still get the same error

image
wamynobe commented 9 months ago

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

tomarra commented 8 months ago

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"