Bower安装大量依赖项

时间:2016-07-05 23:45:30

标签: jquery angularjs ubuntu bower

在我的终端中运行bower install似乎正在下载数量惊人的大量/依赖项。通过bower install jquery --save安装jquery的以下进度日志显示已下载了11 MB以上的数据。安装最终结果是14+ MB。我见过其他人使用bower来安装jquery,只要我花了很多时间就可以下载像jquery那样的小包。如何解决这个问题?

  bower progress      jquery#* Receiving objects:  90% (4371/4819), 11.09 MiB | 33 KiB/s
bower progress      jquery#* Receiving objects:  90% (4371/4819), 11.11 MiB | 116 KiB/s
bower progress      jquery#* Receiving objects:  90% (4371/4819), 11.14 MiB | 30 KiB/s
bower progress      jquery#* Receiving objects:  90% (4371/4819), 11.17 MiB | 29 KiB/s
bower progress      jquery#* Receiving objects:  90% (4371/4819), 11.21 MiB | 32 KiB/s
bower progress      jquery#* Receiving objects:  90% (4371/4819), 11.25 MiB | 33 KiB/s
bower progress      jquery#* Receiving objects:  90% (4371/4819), 11.28 MiB | 32 KiB/s
bower progress      jquery#* Receiving objects:  90% (4371/4819), 11.32 MiB | 35 KiB/s
bower progress      jquery#* Receiving objects:  90% (4371/4819), 11.37 MiB | 39 KiB/s
bower progress      jquery#* Receiving objects:  90% (4371/4819), 11.40 MiB | 41 KiB/s
bower progress      jquery#* Receiving objects:  90% (4371/4819), 11.48 MiB | 44 KiB/s

UPDATE 问题不仅出现在jquery上。以下是angular安装,完成37%,接近20MB。安装完成了令人敬畏的187MB!

bower angular#>= 1.2.0                                progress Receiving objects:  37% (8695/22905), 18.03 MiB | 31 KiB/s
bower angular#>= 1.2.0                                progress Receiving objects:  37% (8697/22905), 18.04 MiB | 30 KiB/s
bower angular#>= 1.2.0                                progress Receiving objects:  37% (8697/22905), 18.08 MiB | 30 KiB/s
bower angular#>= 1.2.0                                progress Receiving objects:  37% (8699/22905), 18.10 MiB | 31 KiB/s
bower angular#>= 1.2.0                                progress Receiving objects:  37% (8699/22905), 18.14 MiB | 29 KiB/s
bower angular#>= 1.2.0                                progress Receiving objects:  37% (8699/22905), 18.18 MiB | 29 KiB/s
bower angular#>= 1.2.0                                progress Receiving objects:  37% (8700/22905), 18.21 MiB | 31 KiB/s
bower angular#>= 1.2.0                                progress Receiving objects:  37% (8700/22905), 18.23 MiB | 33 KiB/s
bower angular#>= 1.2.0                                progress Receiving objects:  37% (8701/22905), 18.28 MiB | 34 KiB/s
bower angular#>= 1.2.0                                progress Receiving objects:  37% (8701/22905), 18.32 MiB | 35 KiB/s
bower angular#>= 1.2.0                                progress Receiving objects:  37% (8702/22905), 18.36 MiB | 37 KiB/s
bower angular#>= 1.2.0                                progress Receiving objects:  37% (8703/22905), 18.39 MiB | 38 KiB/s
bower angular#>= 1.2.0                                progress Receiving objects:  37% (8703/22905), 18.42 MiB | 35 KiB/s

我的bower.json如下

 {
      "name": "testing bower",
      "authors": [
        "XXXXXu XXXz Mxxxxxxda <xxxxxxxa@gmail.com>"
      ],
      "description": "ask the name",
      "main": "index.html",
      "license": "MIT",
      "homepage": "",
      "private": true,
      "ignore": [
        "**/.*",
        "node_modules",
        "bower_components",
        "test",
        "tests"
      ],
      "dependencies": {
        "jquery": "^3.0.0",
        "grunt": "^1.0.1",
        "angular-gridster": "^0.13.10"
      }
    }

0 个答案:

没有答案