reed
reed

Reputation: 11

“-bash: firebase: command not found”

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?

Upvotes: 0

Views: 251

Answers (1)

Justin Becker
Justin Becker

Reputation: 19

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

npm get prefix

Upvotes: 1

Related Questions