Installing Firebase

Im trying to host a web app on firebase, free code camp does talk about this in an article:

I seem to be on step 4 where the command ‘npm install firebase’ is to be put into the terminal, but the terminal keeps giving an error message, that the term ‘npm’ is not recognized…

Hello!

Looks like the path to your npm installation is missing in the system environment. Try this:

Find the path where node.js is installed on your computer, copy it.
Search your system for environment variables → click on “environment variables” and on “Path” in the following menu → add the path of node.js to the list.

Now restart the terminal and you should be able to use node/npm.

Hope it works.

Find the path in VS code?

Did you install Node?

Type node --version in any terminal to find out if you have it installed.

@lasjorg @DanielHuebschmann what if its not installed

Node is how you get npm. It is part of the installation. You have to have Node installed anyway.

Would this be the extension in vs code?:
Node.js Modules Intellisense

Not sure what you are asking about but VS Code extensions has nothing to do with installing Node on your system.

It stops installing when its dealing with the ‘chocolatey’ part…

I don’t see anything about using chocolatey. Do you have that installed?

It is a package manager for Windows and you do not need it and it isn’t a replacement for npm. Just use the normal Node installer and follow the article.

It says the term ‘node–version’ is not recognized…

There is a space between the two node -v

@danielhuebschmann It does return a version…

Great now follow my steps as mentioned above:

  • Where on your computer is Node installed → copy the path
  • Windows search the environmental variables → click on environmental variables
  • You’ll get the left menu like in the picture
  • Now choose “Path” on the lower one for the system to get the list on the right
  • Add your Node.js path to the list

Also search in YT “how to install firebase”, during my learning phase; I use to refer to YT videos a lot when I got struck

If you can do node -v it should already be in the environment path. The same should work for npm npm -v unless you did something odd with the installation.

Maybe, uninstall Node and reinstall it. Try using the .msi installer and make sure you do not uncheck any settings about environment variables.

Thank you for the helpful information. I am truly grateful. But is it okay for you to put the screenshots again in English

I can’t find the ‘copy path’ option, all I see is a ‘copy’ option when I right click. Is this what you mean?

You copy by right clicking on the source and choosing “copy” or “copy path” from the menu. And I can’t provide any more screenshots.