Closed NBPTruong closed 8 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 💙 🙌 !
I still get the same error
After adding Path, you should run source ~/.zshrc
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"
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.