Git 模块未安装

Git 模块未安装,git,npm,Git,Npm,我执行以下命令: npm install --save @ng-select/ng-select 我得到了这个例外: npm ERR! code ENOGIT npm ERR! Error while executing: npm ERR! undefined ls-remote -h -t ssh://git@github.com/angular/cdk-builds.git npm ERR! npm ERR! undefined npm ERR! No git binary found

我执行以下命令:

 npm install --save @ng-select/ng-select
我得到了这个例外:

npm ERR! code ENOGIT
npm ERR! Error while executing:
npm ERR! undefined ls-remote -h -t ssh://git@github.com/angular/cdk-builds.git
npm ERR!
npm ERR! undefined
npm ERR! No git binary found in $PATH
npm ERR!
npm ERR! Failed using git.
npm ERR! Please check if you have git installed and in your PATH.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\franc\AppData\Roaming\npm-cache\_logs\2018-12-09T17_06_39_769Z-debug.log

我刚刚输入了git,并将其放入路径变量
C:\Program Files\git\bin
。问题是什么?

看起来您的路径中没有安装git,您可以在windows安装过程中进行设置

要验证这是否是问题所在,请打开gitbash并从bash执行命令


如何验证git是否在您的路径中?
运行
git--version
并验证在安装git时是否找到了git

是否已将其添加到路径中?您可以在安装过程中选择它