Error: spawn git ENOENT

  • A+

Suddenly, I began to get such pop-up error message in the VSC and when I checked the output of extension, I got below more information:

I tried to find solution through Google while most of the search results were not match my issue. When I clicked every file or maybe every line, I would get such error message so it was really annoying.

Just now, I found below way:

hexo部署问题:Error: spawn git ENOENT

I recalled I did not allow to add git command to the PATH environment parameter when I installed the Git program, so I added it to my user environment, then I restarted the VSC and such error message did go.



:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: