【问题标题】:How does jQuery install with Bower?jQuery 如何与 Bower 一起安装?
【发布时间】:2015-06-19 16:15:11
【问题描述】:

bower install jquery 工作正常。虽然我在http://bower.io/search/?q=owner:jquery 中没有看到 jquery。

还有https://github.com/jquery/jquery 没有bower.json 但我可以安装,怎么办?

【问题讨论】:

    标签: javascript jquery bower bower-install


    【解决方案1】:

    如果您在使用 bower 安装 jQuery 时仔细查看最后一行,您会发现 bower 使用了以下存储库: https://github.com/components/jquery

    d:\temp>凉亭安装 jquery

    凉亭未缓存的 git://github.com/jquery/jquery.git#*

    凉亭解析 git://github.com/jquery/jquery.git#*

    凉亭下载https://github.com/jquery/jquery/archive/2.1.4.tar.gz

    凉亭提取 jquery#* archive.tar.gz

    凉亭已解决 git://github.com/jquery/jquery.git#2.1.4

    凉亭安装 jquery#2.1.4

    jquery#2.1.4 bower_components\jquery

    您可以在 bower 网站上找到该数据包: http://bower.io/search/?q=owner:components%20property-book-client

    【讨论】:

    • 这很令人困惑。我认为最后一行 bower_components/jquery 表示下载/创建它的文件夹/目录。另外为什么该组件在 Bower 注册表中被命名为 property-book-client 而在 github 上它是 components/jquery
    猜你喜欢
    • 2013-05-07
    • 2014-07-21
    • 2018-12-28
    • 1970-01-01
    • 2013-07-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多