【问题标题】:Unable to install bootstrap using bower无法使用 bower 安装引导程序
【发布时间】:2015-12-26 06:25:20
【问题描述】:

Please find the image for error information我正在尝试在 windows 系统中使用 bower 安装 boostrap。 虽然我尝试将命令设置为 bower install bootstrap -S ,我遇到错误bower ENOGIT git 未安装或不在PATH 中

请帮我解决这个问题。

谢谢

【问题讨论】:

标签: twitter-bootstrap bower bower-install


【解决方案1】:

你应该先安装 Git Bash

Download For Windows

我推荐你下载 Bootstrap Directly。它只是 CSS 和 JS 文件。将这些文件添加到您的站点目录,然后您就有了一个引导站点

祝你好运

【讨论】:

  • 嗨 Arash,我已经安装了 git(如果我从 git cmd shell 使用它,我可以在 git 上工作),但我无法从 windows cmd 屏幕使用它。
【解决方案2】:

如果您的系统中已经安装了 git,请按照以下步骤将 git 添加为 environment variables。然后你就可以在 windows cmd 中使用 git 了

或点击此链接 - Adding Git to Windows PATH

  1. 右键单击我的电脑
  2. 点击左侧栏中的高级系统设置链接
  3. 点击窗口底部的环境变量
  4. 然后在系统变量下查找路径变量并单击 编辑将 pwd 添加到 git 的 bin 和 cmd 在字符串的末尾,如 这个:

;C:\Program Files\Git\bin;C:\Program Files\Git\cmd

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-05-07
    • 2014-06-24
    • 1970-01-01
    • 2015-03-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多