简体   繁体   English

ENOGIT git未安装或不在路径中

[英]ENOGIT git is not installed or not in the path

I was trying to install some framework packages using bower into my angularjs app.我试图使用 bower 将一些框架包安装到我的 angularjs 应用程序中。 and i was getting this error using the command line tool:我使用命令行工具收到此错误:

在此处输入图片说明

You just need to execute your command using Git Shell tool which is a Git aware powershell tool to run all git dependent technologies such as: node, git and npm .你只需要使用 Git Shell 工具执行你的命令,它是一个 Git 感知的 powershell 工具来运行所有 git 依赖技术,例如: node、git 和 npm

在此处输入图片说明

Just use the Git Bash instead of node.js or command prompt只需使用 Git Bash 而不是 node.js 或命令提示符

As an Example for installing the ReactJS package, after opening Git Bash, execute the following command to install react:以安装ReactJS包为例,打开Git Bash后,执行如下命令安装react:

bower install --save react

To install any other package you would essentially execute the following command:要安装任何其他软件包,您基本上需要执行以下命令:

bower install <package>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM