Firebase-tools: Firebase Hosting / npm

Created on 7 Jan 2018  路  12Comments  路  Source: firebase/firebase-tools

skaermbillede 2018-01-07 kl 16 53 46
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

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.

All 12 comments

What do you mean? What doesn't work?

skaermbillede 2018-01-07 kl 22 15 29
skaermbillede 2018-01-07 kl 22 15 01
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.

skaermbillede 2018-01-07 kl 23 14 18
skaermbillede 2018-01-07 kl 23 12 18
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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

chen86860 picture chen86860  路  3Comments

FluorescentHallucinogen picture FluorescentHallucinogen  路  3Comments

ahaverty picture ahaverty  路  4Comments

kyleabens picture kyleabens  路  3Comments

jkeys089 picture jkeys089  路  3Comments