TL; DR: install Chocolatey, Node (and NPM)
Set chocolate
NOTE. You might want to copy the exact command from the installation page, as it may change over time.
- Open the standard Windows command prompt
@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"- Reboot Console
- Done!
Install Node (and NPM)
- Since Chocolatey installs a directory other than the MSI installation, go to your system configuration and uninstall the previous
node installation (if you have one) - Install Chocolatey as described above
choco install nodejsNOTE. I used nodejs . I’m not even sure what node , but if I had a considerable share of problems with node already nodejs with something else on other systems, I thought that nodejs would be a safer bet right away
- Reboot Console
- Caution:
node -v works!- And
npm -v works too! Awesome.
After that, I was able to install firebase-tools without problems (which I could not do before), so something must have gone wrong! :)
My pretty complete story for the first time
"Chocolate settings in seconds"
If you don't care about sarcasm or grieving engineers on Sunday afternoon, go to the installation instructions in the TL section ; DR below.
For everyone else: I want to change this answer that I recommend using (which now seems like the most popular package management solution for Windows): Chocolatey
It does the job well and fast. However, when I gave him my first try, it took me a while to figure out the installation instructions, which are a bit confusing. Installation instructions go something like this (complete with what I had during the passage):
- NOTE:
- NOTE:
- NOTE:
three high-profile RECORDS before even knowing the basics ... it bothers me ... how can everything go wrong!?
- Limited TLS Installation
I'm not even sure what TLS ... Oh, this is a good friend of SSL - Shouldn't it just be default and just work out of the box? My browser can do HTTPS , no problem! (just kidding ... I know that SSL and TSL often cause a lot of pain in environments with high security requirements)
- Option 1
- Option 2
uh ... fine ... i can't just install?
- Installation behind a proxy?
Simply no...
- Requirements
uh, fight ...
- Why is Chocolatey installed by default?
Jokes aside!?!
- Before installation
sad http://www.clipartbest.com/cliparts/jix/Ekx/jixEkxaGT.png
- Can I install with a proxy?
again with a proxy ...
- Can I install a specific version of Chocolatey?
just any version will be fine, thanks ...
- Can I use the built-in compression of Windows instead of downloading 7zip?
7zip ?! Why are you even mentioning this ?!
- Non-administrative installation
Now that sounds great!
- " NOTE : This option should be a last resort and is considered an advanced scenario."
- Alternative installation options
dizzy
- Command line
- "This is really the easiest method because it does not require PowerShell to be configured before executing it."
And here you are!
Although I really appreciate the fact that the pitfalls and their possible solutions are discussed so widely, perhaps reorganizing them as such, and installing Chocolatey installs in seconds promising effective work using the “easiest method” would be awesome!
Domi Dec 11 '16 at 11:45 2016-12-11 11:45
source share