Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'firebase' is not recognized as an internal or external command, operable program or batch file

People also ask

How do you fix firebase is not recognized as an internal or external command operable program or batch file?

To solve the error "'firebase' is not recognized as an internal or external command, operable program or batch file", install the firebase-tools package globally by running npm install -g firebase-tools and make sure your PATH environment variable is set up correctly.

Is not recognized as an internal or external command operable program or batch file?

You can resolve this issue in three ways: First, use the full path of the executable file to launch the program. Second, add the program path to Windows environment variables. Finally, move the files to the System32 folder.

How do I install firebase on Windows 10?

Windows. Download the standalone binary for the CLI. Then, you can access the executable to open a shell where you can run the firebase command. Use npm (the Node Package Manager) to install the CLI and enable the globally available firebase command.

Why npm is not recognized?

> npm --version 'npm' is not recognized as an internal or external command, operable program or batch file. The error above happens when the Windows operating system doesn't know what to do with the npm command. To fix the error, you need to make sure that the Node executable file is available under your PATH setting.


Ok. First of all, Bizarre problem has some bizarre solution. Uninstall your node js and NPM completely. Then reinstall it, and check, whether it works or not. Best of Luck


npm install -g firebase-tools -f

Using -f for force install again. This work for me


add to .bash_profile export PATH="$PATH:/usr/local/bin" and run

npm install -g firebase-tools

this worked for me


If you are using MS Windows:

  1. Open Start Menu or press Win button on your keyboard.
  2. Type "variables".
  3. Click on "Edit the system environment variables"
  4. Click on "Environment Variables..." button.
  5. In the "System variables" list select "Path" and click on the "Edit..." button under the list.
  6. In the "Edit environment variable" dialog click on the "Browse..." button.
  7. Navigate to the "c:\users<yourusername>\AppData\Roaming" dir and select the "npm" sub-dir, then click "OK".
  8. In the "Edit environment variable" dialog click "OK".
  9. In the "Environment Variables" dialog click on "OK".

For the Linux users:

  1. Navigate to the home_dir.
  2. Edit the hidden ".bash_profile" file.
  3. Add line with following text "export PATH="$PATH:/usr/local/bin".

Navigate to the firebase directory and call it out on the cmd.

  • run cmd as admin
  • cd C:\users\yourusername\AppData\Roaming\npm
  • firebase.cmd login or firebase login
  • firebase will prompt a google login after which the issue should be resolved.

There you go. above steps are all commands goes to your command prompt.


After running npm install -g firebase-tools, go to C:\usr\local. You will see Firebase files.

  1. Copy this path C:\usr\local to the clipboard.
  2. Open the Start Menu and search for Edit the System Environment Variables or simply env.
  3. Select the environment variables option that appears.
  4. Find the PATH variable under the system environment variables (lower section).
  5. Select PATH and click Edit
  6. Add C:\user\local to the beginning of the path.
  7. Add %APPDATA%\npm if it doesn't exist.
  8. Click OK to each of the windows until they're all closed.

After this, open a Windows command prompt and run firebase --version.


Make sure you are running command line as an administer.