firebase-tools "-bash: firebase: command not found"; [英] firebase-tools "-bash: firebase: command not found"

查看:42
本文介绍了firebase-tools "-bash: firebase: command not found";的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

很高兴 Firebase 的托管现已结束测试.尝试使用 firebase-tools 软件包,我已成功安装它:

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

尝试运行任何工具失败

-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

有什么想法吗?总的来说,命令行相当新.

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 运行此命令以查看您应该在 .bash_profile 文件中的 PATH 前缀中放入什么:

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

npm get prefix

这篇关于firebase-tools "-bash: firebase: command not found";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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