'Firebase working in cmd but not in git bash

I am building a react project on Visual Studio Code and want to use firebase but when I am giving the command firebase login, it says C:\Users\ajay\AppData\Roaming\npm/node_modules/node/bin/node: line 1: This: command not found but when I am running the same command using cmd it works fine.

Somebody pls help🙏🏿



Solution 1:[1]

Try with:

firebase login --interactive

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Suraj Rao