Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: zsh: command not found: dart_frog #1263

Closed
NBPTruong opened this issue Jan 29, 2024 · 4 comments
Closed

fix: zsh: command not found: dart_frog #1263

NBPTruong opened this issue Jan 29, 2024 · 4 comments
Assignees
Labels
invalid This doesn't seem right won't fix This will not be worked on

Comments

@NBPTruong
Copy link

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 NBPTruong added the bug Something isn't working as expected label Jan 29, 2024
@alestiago alestiago added question and removed bug Something isn't working as expected labels Jan 29, 2024
@alestiago
Copy link
Contributor

alestiago commented Jan 29, 2024

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 alestiago added the waiting for response Waiting for follow up label Jan 29, 2024
@alestiago alestiago self-assigned this Jan 29, 2024
@NBPTruong
Copy link
Author

I still get the same error
image

@wamynobe
Copy link

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

@tomarra tomarra removed the question label Feb 22, 2024
@tomarra tomarra self-assigned this Mar 19, 2024
@tomarra
Copy link
Contributor

tomarra commented Mar 19, 2024

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 tomarra closed this as not planned Won't fix, can't repro, duplicate, stale Mar 19, 2024
@tomarra tomarra added invalid This doesn't seem right won't fix This will not be worked on and removed waiting for response Waiting for follow up labels Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right won't fix This will not be worked on
Projects
Development

No branches or pull requests

4 participants