To install Firebase CLI using Windows Powershell, run the following command:
terminalnpm install -g firebase-tools
At this point you are able to:
terminalfirebase 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:
terminalC:\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:
terminalSet-ExecutionPolicy RemoteSigned
Hi, I'm Erik, an engineer from Barcelona. If you like the post or have any comments, say hi.