【问题标题】:Install beta version of bourbon with bower用凉亭安装波旁威士忌的测试版
【发布时间】:2016-11-16 16:20:07
【问题描述】:

您好,我是 Bower 的新手,想安装波旁威士忌的测试版,但要获得最新的稳定版本。 执行的命令:

bower install thoughtbot/bourbon

得到:

bourbon#4.2.7 bower_components/bourbon

查看https://github.com/thoughtbot/bourbon 中的 bower.json,我可以看到我想安装的版本是“5.0.0-beta.7”。我做错了什么?

执行:

bower install thoughtbot/bourbon#5.0.0-beta.7

显示:

Additional error details:
Available versions in https://github.com/thoughtbot/bourbon.git:4.2.7, 4.2.6, 4.2.5, 4.2.4, 4.2.3, 4.2.2, 4.2.1, 4.2.0, 4.1.1, 4.1.0, 4.0.2, 4.0.1, 4.0.0, 4.0.0-rc.2, 4.0.0-rc.1, 3.2.4, 3.2.3, 3.2.2, 3.2.1, 3.2.0, 3.2.0-beta.2, 3.2.0-beta.1, 3.1.8, 3.1.7, 3.1.6, 3.1.5, 3.1.4, 3.1.3, 3.1.2, 3.1.1, 3.1.0, 3.0.1, 3.0.0, 2.1.3, 2.1.2, 2.1.1, 2.1.0, 1.4.0, 1.3.6, 1.3.5, 1.3.4, 1.3.3, 1.3.2, 1.3.1, 1.3.0, 1.2.0, 1.1.0, 1.0.4, 1.0.3, 1.0.2, 1.0.1, 1.0.0, 0.2.1, 0.2.0, 0.1.9, 0.1.8, 0.1.7, 0.1.6, 0.1.5, 0.1.4, 0.1.3, 0.1.2, 0.1.1, 0.1.0, 0.0.9, 0.0.8, 0.0.7, 0.0.6, 0.0.5, 0.0.4, 0.0.3, 0.0.2, 0.0.1

【问题讨论】:

    标签: sass bower bourbon


    【解决方案1】:

    Bower 将始终默认安装当前稳定版本,在撰写本文时为4.2.7。要安装预发布版(例如测试版),您需要指定版本:

    bower install bourbon#v5.0.0.beta.7
    

    参考:https://bower.io/docs/api/#install

    【讨论】:

    • 在您回答时正在这样做并遇到错误
    • 好的,我明白你的意思了,我根本不需要 github 帐户和存储库名称。我只是运行你的命令并设法安装它。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-04-03
    • 1970-01-01
    • 2019-06-04
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多