Error: not recognized as an internal or external command

Error: not recognized as an internal or external command

我正在按照说明 here 设置示例:

我在这一步:

Setup the sample with your project firebase use --add and follow the instructions.

但是,我在命令提示符中收到以下错误:

我确定有一个简单的修复方法,我是新手。

  1. 首先使用 https://nodejs.org/en/download/

  2. 在您的系统上安装 nodejs
  3. 然后使用nodejs自带的npm包管理器;借助 url https://www.npmjs.com/package/firebase-tools

  4. 安装 firebase

正如 Lalit 所说,先安装 node.js 然后输入

确保一切顺利
node -v

npm -v

如果这两个测试顺利,请按以下方式安装 firebase:

npm install -g firebase-tools

由于您是新手,请尝试复制过去的命令,直到您习惯它们。