npm install shows error with git not found

前端 未结 2 1836
佛祖请我去吃肉
佛祖请我去吃肉 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:

    0 讨论(0)
  • 2020-11-30 14:38

    You need to install git in your machine to have it working.

    undefined ls-remote -h -t ssh://git@github.com/eligrey/FileSaver.js.git
    

    it should have been

    git ls-remote -h -t ssh://git@github.com/eligrey/FileSaver.js.git
    

    There is error related to git path. check this ls-remote command

    0 讨论(0)
提交回复
热议问题