2

I am installing firebase-tools with yarn with the following command:

yarn global add firebase-tools

After it I am trying:

firebase login

And It giving me command not found an error. Please answer to solve this problem.

I am using Windows 10 operating systems.

/// Also I have tried some methods described on StackOverflow but nothing works. I need a reliable solution.

Penny Liu
  • 15,447
  • 5
  • 79
  • 98
Mohinder singh
  • 112
  • 1
  • 6

3 Answers3

5

If you installing firebase-tools using this command :

yarn global add firebase-tools

After that execute this command :

export PATH="$(yarn global bin):$PATH"

and then run the command firebase login

Purvi Barot
  • 241
  • 2
  • 9
2
  1. First, you need to check if the firebase-tools package is installed, using yarn info firebase-tools.
  2. Then, to log in, use yarn firebase login.
Woden
  • 1,054
  • 2
  • 13
  • 26
0

If you're having trouble getting firebase-tools to work through Node.js, I recommend installing the pre-built binary for your platform. The standalone binary for windows can be found here.

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
  • I have used that suggestion from firebase. It did'nt work. – Mohinder singh Aug 20 '20 at 04:40
  • I figure out that I only want to use command line tools, so I installed it with npm package manager. ```npm install -g firebase-tools ``` It is working fine now. I hope it did'nt make any problem with yarn later. – Mohinder singh Aug 20 '20 at 04:43