Windows git bash has no sudo command by default. You can add win sudo plug-in to realize this function
curl -s https://raw.githubusercontent.com/imachug/win-sudo/master/install.sh | sh
If the above command doesn’t work, you can copy it https://raw.githubusercontent.com/imachug/win-sudo/master/install.sh Then bash install. SH is executed
Similar Posts:
- MAC Install homebrew Error: Failed to connect to raw.githubusercontent.com port 443: Connection refused error:
- curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
- chown: /usr/local: Operation not permitted [Solved]
- [Solved] gdb peda Install Plug-in Error: Error in sourced command file: Undefined command: “from”.
- [Solved] Mac Install brew Error: “Warning: /opt/homebrew/bin is not in your PATH.”
- Raspberry Pi3 Error: “Unable to determine hardware version. I see: Hardware : BCM2835”
- Ubuntu solves sudo: Source: command not found error
- git bash bash: *: command not found
- linux sudo java : command not found
- How to Solve Sudo Echo Error: Permission denied