如何解决Windows中的cmd或node.js命令提示符问题:git未安装或未在PATH中

当你的系统中没有Git Windows发行版或安装不正确时, 就会发生此问题。

例如, 如果你正在执行bower install命令, 该命令使用git克隆已注册的存储库:

bower install --save jquery

你会得到一个明确的错误:

Running "bower:install" jquery

Fatal error : git is not installed or not in the PATH

下载适用于Windows的git发行版(最新版本)。你可以在此处的官方git主页中下载它, 然后继续安装。

请注意以下安装步骤:

Git安装程序Windows问题

你需要在路径环境部分中选择第二个选项。否则, 你将无法在命令提示符下使用git。

如果安装顺利, 现在可以在Windows命令提示符(或Node.js命令提示符)上将git用作环境变量。

注意:在安装之前, 请记住关闭所有打开的命令提示符。然后打开一个cmd.exe, 可以使用git。

来源:

https://www.srcmini02.com/59293.html

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_38314.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?