未安装模块 [英] the module is not installed
本文介绍了未安装模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我执行以下命令:
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
中.有什么问题吗?
I have just intalled git and I put it in my path variable C:\Program Files\Git\bin
. what is the problem?
推荐答案
您的路径中似乎没有安装git,您可以在Windows安装期间进行设置.
Looks like git is not installed in your path, You can set it during the windows installation.
要验证是否存在此问题,请打开Git-bash并从bash中执行命令
To verify that this is the problem open Git-bash and execute the command from the bash
运行git --version
并确认找到git
run git --version
and verify that git is found
这篇关于未安装模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文