火力工具" -bash:火力点:找不到命令" [英] firebase-tools "-bash: firebase: command not found"

查看:203
本文介绍了火力工具" -bash:火力点:找不到命令"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

激动,火力地堡的主机是测试阶段现已结束。试图获得与该火力点的工具包去,我已经成功地安装了它:

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

我试过把下面的命令在我的.bash_profile没有任何运气

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

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

任何想法? pretty新一般命令行。

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

谢谢!

推荐答案

@ mklement0这个答案看起来不错,但我担心它会被恐吓的人谁是太新的命令行。所以我要去挑拣最相关的一块吧。

@mklement0 That answer looks good, but I'm worried it will be intimidating to someone who is so new to the command line. So I'm going to cherry-pick the most relevant piece of it.

@cienki运行这个命令来查看你应该是 PATH preFIX在的.bash_profile 文件:

@cienki Run this command to see what you should be putting in that PATH prefix in your .bash_profile file:

npm get prefix

这篇关于火力工具" -bash:火力点:找不到命令"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆