/usr/bin/env: bash: No such file or directory 解决办法

原因在于文件格式保存错误,应该存为unix格式

the problem's cause was that Git on Windows converted the line endings of gradlew from Unix style (LF) to Windows style (CRLF).

You can turn off that automatic conversion using git config core.autocrlf false.
Setting the line endings of gradlew back to Unix style fixed the problem.


In Vim this is done using  :set fileformat=unix.

猜你喜欢

转载自blog.csdn.net/yangnianjinxin/article/details/80264395