npm install shows error with git not found

前端 未结 2 1841
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-30 14:17

I have recently added some dependencies to the package.JSON and tried installing npm . but it shows errors related to git not found

Error Screenshot

2条回答
  •  隐瞒了意图╮
    2020-11-30 14:23

    In my case, I had Git installed, but it was only accessible from Git Bash (I had selected the first option below when installing). I reinstalled with the second option and it solved the issue:

提交回复
热议问题