NOTE: You might want to copy the exact command from their install page since it might change over time.
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "(iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))) >$null 2>&1" && SET PATH="%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
node
installation (if you have one)choco install nodejs
NOTE I used
nodejs
. I am not even sure whatnode
is, but having had my fair share of troubles withnode
already being taken by something else in other systems, I thought,nodejs
would be the safer bet right away
node -v
works!
npm -v
also works! Awesome.After this, I was able to install firebase-tools
without problems (which I was not able to do previously), so something must have gone terribly right! :)
"Chocolatey installs in seconds"
If you don't care about sarcasm or lamenting engineers on a Sunday afternoon, skip ahead to the installation instructions in the TL;DR section below.
For everyone else: I want to amend this answer which recommends using (what seems to be the hottest package management solution for Windows right now): Chocolatey
It gets the job done nice and quick. However, when I gave it a first try, it took me a while to make sense of the install instructions which are kinda convoluted. The install instructions go a bit like this (complete with what went through my head while going through it):
three big-ass NOTEs before even knowing the basics... this makes me anxious... how wrong could things go!?
not even sure what
TLS
is... Oh it's a good friend ofSSL
- Shouldn't this just be the default and just work out of the box? My browser can doHTTPS
, NO PROBLEM! (just kidding... I know thatSSL
andTSL
frequently cause a lot of pain in environments that have high security needs)
eeh... great... Can't I just install?
Just... no...
uh boi...
Seriously!?!
Before You Install
(source: clipartbest.com)
Can I install with a proxy?
again with the proxy...
just any version would be fine, thank you...
7zip?! Why do you even mention this?!
Now that sounds great!
Sh$%!@T.
giddy
And there you go!
While I really appreciate the fact that pitfalls and their possible solutions are discussed so extensively, maybe re-organizing them as such, and putting the Chocolatey installs in seconds
promise to work by putting the "easiest method" first would be just awesome!