Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

firebase-tools "-bash: firebase: command not found"

Tags:

bash

firebase

Excited that Firebase's hosting is now out of beta. Trying to get going with with the firebase-tools package and I've successfully installed it:

npm install -g firebase-tools 

Trying to run any tool fails with

-bash: firebase: command not found 

I've tried putting the following command in my .bash_profile without any luck

export PATH=/usr/local/share/npm/bin:$PATH 

Any ideas? Pretty new to the command line in general.

Thanks!

like image 225
cienki Avatar asked May 14 '14 03:05

cienki


People also ask

How do I know if firebase tools are installed?

Run firebase tools --version to check version. And as per the prompt, run npm install -g firebase-tools to update.

Where is firebase command line installed?

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.

What is the firebase CLI NPM module?

Firebase CLI. The Firebase Command Line Interface (CLI) Tools can be used to test, manage, and deploy your Firebase project from the command line. Deploy code and assets to your Firebase projects. Run a local web server for your Firebase Hosting site.


1 Answers

Run code below with terminal,

alias firebase="`npm config get prefix`/bin/firebase" 
like image 139
Durul Dalkanat Avatar answered Oct 15 '22 20:10

Durul Dalkanat