Install Firebase CLI from the Windows PowerShell

To install Firebase CLI using Windows Powershell, run the following command:

terminal
npm install -g firebase-tools

At this point you are able to:

terminal
firebase login

If Powershell doesn't recognize the command as cmdlet, restart your computer and reinstall Firebase CLI again.

After reinstalling it, you may get an error:

terminal
C:\Users\userName\AppData\Roaming\npm\firebase.ps1 cannot be loaded because running scripts is disabled on this system

To solve it, execute the following command:

terminal
Set-ExecutionPolicy RemoteSigned

Hi, I'm Erik, an engineer from Barcelona. If you like the post or have any comments, say hi.