Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

firebase login using power shell

how do i login to firebase on windows power shell? i just started using firebase for app deployment. after i install firebase CLI using npm install -g firebase-tools and the installation was succeessful, but when i tried to login using firebase login in my site directory, i got this message

"PS C:\Users\Dennis\friendlychat\web-start> firebase login The term 'firebase' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:9 + firebase <<<< login + CategoryInfo : ObjectNotFound: (firebase:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException"

note: i"ve set the environment path for nodejs and npm cmd are working>

like image 735
djcalm Avatar asked Mar 20 '26 16:03

djcalm


2 Answers

  1. Install firebase tools. Use: npm install -g firebase-tools
  2. Login using: firebase login
  3. Initialize your firebase: firebase init In this step you need to select your firebase account and the application folder you want to deploy on firebase.
  4. Then to deploy the code: firebase deploy

PS: You should build your application before step 2.

like image 185
mohammed saquib Avatar answered Mar 22 '26 10:03

mohammed saquib


The issue is that your Nodejs data folder path hasn't been added to your windows environment variables and the.

  1. Open windows 'environment variables'.
  2. Under 'system variables' look for variable 'Path'
  3. Select variable 'Path' and choose 'edit'
  4. From the dialog choose 'new' and paste %USERPROFILE%\AppData\Roaming\npm\
  5. Apply changes and restart PowerShell

You're good to go!

like image 35
Sifundo Moyo Avatar answered Mar 22 '26 10:03

Sifundo Moyo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!