React native npm install error report No git binary found in $PATH

react native npm install error report No git binary found in $PATH
excuse me, have you encountered such a problem? you can install it with cnpm, but you can"t find these in the project.
other projects are fine, only on this react-native project.

Mar.21,2021

put git in the environment variable. Under Windows, you can download https://git-scm.com/downloads. After installation, put bin in the installation directory in the environment variable to ok.


Thank you, problem solved after adding environment variable.


after adding environment variables, it still cannot be solved. Do you encounter this situation

Menu