马会东的博客

马会东的博客

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

 

http://www.haorooms.com/post/bower_error

 

第一次使用bower,结果在安装bootstrap时遇到这个问题:

 
$ bower install bootstrap 
bower ENOGIT git is not installed or not in the PATH

按照提示我先安装了git fo window.
安装时记得要勾选 Use Git from the windows Command prompt
完成后,再次运行,问题依然存在。

于是又注意到“or not in the PAHT”

$ PATH

添加git路径(我的是默认安装路径,根据自己的机器情况 更改路径即可)

$ set PATH=%PATH%;C:\Program Files\Git\bin

再次运行

$ bower install bootstrap  
...

 

 
set PATH=%PATH%;C:\Program Files (x86)\Git\bin

 

posted on 2016-10-21 11:37  马会东  阅读(602)  评论(0编辑  收藏  举报