Greetings everyone.

I'm a new ubuntu 16.04 user. I installed my nodejs, npm and firebase tools.

But, after that I need to do the last step before deploying my static web. Login to my firebase with npm.

I always get this output :

$ firebase login firebase: command not found

from this following input :

$ firebase login

I also installed the npm global package (jshint) with input :

$ npm install -g jshint

and get this output

/home/marco/.npm-global/bin/jshint -> /home/marco/.npm-global/lib/node_modules/jshint/bin/jshint + jshint@2.9.5 added 31 packages in 16.463s

Could someone help or tell me my mistake(s)? Please.



Run this code in your terminal:

alias firebase="$(npm config get prefix)/bin/firebase"
| improve this answer | |
  • this work for mac too, thanks... – coderInrRain Aug 27 '19 at 0:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.