-bash: firebase: command not found

﹥>﹥吖頭↗ 提交于 2020-06-26 03:52:50

问题


I need to host website to google firebase hosting. I looked almost everywhere but steel have the problem. I have installed npm install --global firebase also npm install -g firebase-tools but when I want to use firebase command it says : "command not found"

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

Firebase Hosting set up issue

https://github.com/firebase/firebase-tools/issues/46

this posts didn't helped

this is after sudo npm install --global firebase-tools


回答1:


alias firebase="`npm config get prefix`/bin/firebase"



回答2:


I forgot to install Firebase Tools after a long time away from it on new computer... Use npm i firebase --save to set your project up and npm install -g firebase-tools to install the tools for e.g. serving your app locally, etc.



来源:https://stackoverflow.com/questions/38912491/bash-firebase-command-not-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!