Firebase Hosting set up issue

后端 未结 3 1800
南旧
南旧 2020-12-10 15:55

I\'m just trying to do a simple set-up for hosting on firebase. I\'m following the instructions at (https://www.firebase.com/docs/hosting/guide/deploying.html) but I\'m miss

相关标签:
3条回答
  • 2020-12-10 16:41

    According to Script Kitty's answer, for windows solution only:

    You are probably missing npm in your path. You can check it by echo %PATH% to make sure. Thus, open Environmental variables > system variables > path

    see if you could not find C:\Users\yourusername\AppData\Roaming\npm there.

    if not, add it following this link. Or simply add your npm path there.

    0 讨论(0)
  • 2020-12-10 16:54

    I had this exact same error. I fixed it by changing the path variable to include firebase.

    Try finding firebase.cmd on Windows through C:\Users\myname\AppData\Roaming\npm. I couldn't find firebase.exe, which is where I got confused. Looking at your screenshot, I can see where the path is saved.

    Just search for the firebase.cmd and add it to your %PATH% C:\Users\myname\AppData\Roaming\npm. Then restart and try again: firebase should be a valid command

    Sorry this is a year late and hope this helps someone.

    0 讨论(0)
  • 2020-12-10 16:55

    All of the Simple and Quick solution is here...

    step1: just go to C:\Users\your-user-name\AppData\Roaming\npm
    step2: copy the path of this "npm"-folder
    step3: now go to start and type "env" and select first-option then
    step4: now paste that path in "paths"-option by clicking on "edit"-button
    step5: then click on "ok" and restart your pc

    0 讨论(0)
提交回复
热议问题