
pleas somebody help!
I've tried everything! but nothing works I've searched the web for more than 10 hours. I can not find anything that works
What do you mean? What doesn't work?


When I write (firebase init) my comando doesn't work, it would look like the image with the big firebase sign
It seems like your $HOME/.npm-global/bin is not in your $PATH
You can learn more about it here: https://coolestguidesontheplanet.com/add-shell-path-osx/
If you will still have a problem, please run echo $PATH and paste the output here.


It still doesn't work :( Maybe I did something wrong with Picture Number 1?
Thank you for your help, you are a wonderful person
As you can see it doesn鈥檛 show up in your $PATH. Did you save the file? Did you restart your terminal?
I can also highly recommend using https://brew.sh to make installing everything on the MacOS much easier, so you don鈥檛 run into problems like this.
How can I see if I have saved the file?
ohh I will try that
You can run
echo 'export PATH="$HOME/.npm-global/bin:$PATH"' >> ~/.bash_profile, restart your terminal and you should be good.
Pro tip for the future: when you fix something, try to understand why didn鈥檛 it work earlier and why does it work now. The most important thing in programming is to learn every single day.
Many thanks for all the help
it works now, thank you for your time
Remember to close the issue.
Most helpful comment
You can run
echo 'export PATH="$HOME/.npm-global/bin:$PATH"' >> ~/.bash_profile, restart your terminal and you should be good.Pro tip for the future: when you fix something, try to understand why didn鈥檛 it work earlier and why does it work now. The most important thing in programming is to learn every single day.