【发布时间】:2016-08-08 20:53:36
【问题描述】:
我在安装 firebase 命令行工具时遇到了问题。我正在关注以下指南:https://www.firebase.com/docs/hosting/command-line-tool.html。我已经在终端中运行了初始命令:npm install -g firebase-tools。一旦我在我的目录的根目录中运行:firebase init,我就会收到以下错误:
-bash: firebase: command not found
我查看了如何手动修改我的 bash 配置文件的指南,但不知道该怎么做...当我运行全局命令时,我的 bash .bash_profile 不应该自动被修改吗?任何帮助,将不胜感激。我只需要我的 firebase 命令在终端中工作,为什么全局命令不会在我的 bash 配置文件中注册?
【问题讨论】:
标签: bash firebase path .bash-profile firebase-tools