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.
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.
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.
> 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:
For the Linux users:
Navigate to the firebase directory and call it out on the cmd.
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.
C:\usr\local
to the clipboard.PATH
variable under the system environment variables (lower section).PATH
and click Edit
C:\user\local
to the beginning of the path.%APPDATA%\npm
if it doesn't exist.After this, open a Windows command prompt and run firebase --version
.
Make sure you are running command line as an administer.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With