【问题标题】:Is there a way to install fundation 6 with bower有没有办法用凉亭安装fundation 6
【发布时间】:2016-02-16 10:39:47
【问题描述】:

到目前为止,我将"foundation": "^5.5.0" 放在了我的 bower.json 中,但我现在想升级到第 6 版,当我将 5.5.0 替换为 6.0.0(并开始安装 bower)时,没有找到它。

我应该怎么做才能让它发挥作用?

【问题讨论】:

    标签: zurb-foundation bower


    【解决方案1】:

    Foundation 6 在 bower (foundation-sites) 上使用了一个新包

    使用bower install foundation-sites --save-dev 安装Foundation 6 并将其保存到您的bower.json 文件中。

    【讨论】:

      【解决方案2】:

      因为刚发布,可能还没有在线更新 bower 包列表,暂时这样使用(基础版本 6.1.2) 添加到您的 bower.json

          "foundation": "~5.5.3",
          "foundation6": "https://github.com/zurb/foundation-sites.git"
      

      然后运行命令bower install

      【讨论】:

      • 如果你不想保留它,你可以删除 5.5.3 行