Firebase Hosting created a problem

I'm just trying to make a simple setup for hosting on firebase. I follow the instructions ( https://www.firebase.com/docs/hosting/guide/deploying.html ), but I am missing something because I keep getting the error message:

'firebase' is not recognized as an internal or external command, operating program, or batch file.

What I've done:

  • Installed nodes.
  • Set PATH = to C: \ Program Files \ nodejs; through control panel
  • in cmd: cd C:\Program Files\nodejs
  • npm install -g firebase-tools
  • changed directory to folder with my html files
  • tried to work both firebase app init, and firebase initnone of which work and give me the same error

screenshot of cmd

+7
2

. , , firebase.

firebase.cmd Windows C:\Users\myname\AppData\Roaming\npm. firebase.exe, . , , .

firebase.cmd % PATH% C:\Users\myname\AppData\Roaming\npm. : firebase

, , -.

+10

Script Kitty, Windows Solution:

, npm . echo %PATH%, . , > >

, C:\Users\yourusername\AppData\Roaming\npm .

, . npm.

0

Source: https://habr.com/ru/post/1651025/


All Articles