我正在开发一个需要 Git 的 Bower 组件的项目,即使我的系统中有 GIT,它也没有安装。我还设置了 git/cmd 的路径。
配置为:Windows7; GIT是2.7.0.windows1,路径是programfiles/git/cmd
我也尝试过 Stackoverflow 中给出的各种解决方案,但没有解决我的问题。我的一个有趣的观察是 user/appdata 中没有 git
系统中还安装了npm。请建议我解决此问题。
最佳答案
Bower 在其“Windows Users ”部分中明确指出:
To use Bower on Windows, you must install Git for Windows correctly. Be sure to check the options shown below:
This issue确认:
I've encountered the same issue before,
I just re-install everything and followed these instructions.Firstly I installed Git then install bower , it fixes my problem.
或者,至少在你的 bower 命令之前:
set PATH=%PATH%;C:\Program Files (x86)\Git\bin;
关于node.js - 即使在安装了 git 和 stackoverflow 中给出的路径变量后,安装 Bower 组件时仍出现“未安装 Git 或未指定路径”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35333072/