When using the specific combination of Git Bash and Windows Terminal, npm
does not do anything. For example, npm -v
, npm install
, or any other command starting with npm
will just go to the next line with no response.
However, when I run npm -v
or npm
in general on other terminals on my Windows 10 PC, it works fine.
It also works fine in Windows Terminal when using:
- Git Bash itself
- PowerShell
- CMD
I've tried uninstalling and reinstalling a bunch of times to no avail, and I don't believe npm
itself is installed incorrectly since it works fine with Command Prompt.
Edit: Windows Terminal settings for Git Bash:
{
"guid": "{ed985d27-ac7c-477b-a3fc-1f59152f5199}",
"commandline": "C:\\Program Files\\Git\\usr\\bin\\bash.exe",
"cursorShape": "filledBox",
"icon": "C:\\Program Files\\Git\\mingw64\\share\\git\\git-for-windows.ico",
"name": "Git Bash",
"startingDirectory": "%USERPROFILE%",
"tabTitle": "Git Bash"
}