Firebase Hosting set up issue

 ̄綄美尐妖づ 提交于 2019-11-28 11:23:24

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.

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!