0

I accidentally installed firebase-tools and initialized my app in my home directory. Now when I try to use firebase command in the correct directory, I get the error

-bash: firebase: command not found

I have tried uninstalling and reinstalling firebase-tools in both my home directory and the correct directory with and without -g. I've also added this line to my .bash_profile per the advice of this question:

export PATH="/Users/myusername/.npm-global/bin:$PATH"

What can I do to fix this?

reed
  • 11
  • 2
  • Trying looking at this thread which might help. [https://stackoverflow.com/questions/76649789/command-not-found-firebase-login-firebase-tools](https://stackoverflow.com/questions/76649789/command-not-found-firebase-login-firebase-tools) – Matt Ly Jul 14 '23 at 19:52

1 Answers1

1

Run this command to see what you should be putting in that PATH prefix in your .bash_profile file:

npm get prefix