Quickly remove the text without having to create a custom prompt.
Edit the file: C:\Program Files\Git\etc\profile.d\git-prompt.sh
else
TITLEPREFIX=$MSYSTEM
fi
On Windows, npm scripts run under cmd.exe.
If you have Git for Windows installed, you can make npm scripts run under Bash. This allows you to somewhat mimic a Linux or macOS environment.
Check to see where npm is installed:
npm ls -g --depth=0