【问题标题】:Bower installs wrong version of foundation-sitesBower 安装了错误版本的基础站点
【发布时间】:2017-09-17 15:09:36
【问题描述】:

我正在尝试安装 Foundation-sites 版本 6.2.0。 这是我的 bower.json 文件:

{
  "name": "asp.net",
  "private": true,
  "dependencies": {
    "font-awesome": "4.6.1",
    "foundation-sites": "6.2.0"
  }
}

但是,当我查看已安装的 Foundation-sites 库时,我发现它是 6.4.3 版(foundation-sites 目录中的 bower.json):

{
  "name": "foundation-sites",
  "version": "6.4.3",
  "license": "MIT",
  "main": [
    "scss/foundation.scss",
    "dist/js/foundation.js"
  ],
  "ignore": [
    "config",
    "docs",
    "gulp",
    "lib",
    "test",
    "composer.json",
    "CONTRIBUTING.md",
    "gulpfile.js",
    "meteor-README.md",
    "package.js",
    "package.json",
    "sache.json",
    ".editorconfig",
    ".npm",
    ".gitignore",
    ".npmignore",
    ".versions",
    ".babelrc",
    "yarn.lock"
  ],
  "dependencies": {
    "jquery": ">= 3.0.0",
    "what-input": "~4.1.3"
  }
}

甚至 Visual Studio 中的 UI 都给人一种安装了 6.2.0 的印象:

编辑: 经过进一步检查,我注意到 .bower.json 包含正确的版本(6.2.0)。 错误的版本 (6.4.3) 在 bower.json 中,这似乎是安装的版本。

这可能是什么问题;为什么要安装 6.4.3?

【问题讨论】:

  • 这里没人能帮我吗?

标签: json zurb-foundation bower


【解决方案1】:

一般来说,凉亭已经死了,不再推荐了。你可以切换到 npm 或 yarn。

关于您的问题。 我无法复制此内容,并且您没有提供更多信息。

bower install
bower not-cached    https://github.com/zurb/foundation-sites.git#6.2.0
bower resolve       https://github.com/zurb/foundation-sites.git#6.2.0
bower not-cached    https://github.com/FortAwesome/Font-Awesome.git#4.6.1
bower resolve       https://github.com/FortAwesome/Font-Awesome.git#4.6.1
bower download      https://github.com/FortAwesome/Font-Awesome/archive/v4.6.1.tar.gz
bower download      https://github.com/zurb/foundation-sites/archive/v6.2.0.tar.gz
bower progress      font-awesome#4.6.1 received 1.0MB
bower progress      foundation-sites#6.2.0 received 1.0MB
bower progress      font-awesome#4.6.1 received 1.2MB
bower progress      foundation-sites#6.2.0 received 1.3MB
bower progress      font-awesome#4.6.1 received 1.5MB
bower progress      foundation-sites#6.2.0 received 1.5MB
bower progress      font-awesome#4.6.1 received 1.8MB
bower progress      foundation-sites#6.2.0 received 1.8MB
bower progress      font-awesome#4.6.1 received 2.1MB
bower progress      foundation-sites#6.2.0 received 2.1MB
bower extract       font-awesome#4.6.1 archive.tar.gz
bower progress      foundation-sites#6.2.0 received 2.3MB
bower progress      foundation-sites#6.2.0 received 2.6MB
bower extract       foundation-sites#6.2.0 archive.tar.gz
bower resolved      https://github.com/zurb/foundation-sites.git#6.2.0
bower resolved      https://github.com/FortAwesome/Font-Awesome.git#4.6.1
bower not-cached    https://github.com/ten1seven/what-input.git#~1.1.2
bower resolve       https://github.com/ten1seven/what-input.git#~1.1.2
bower cached        https://github.com/jquery/jquery-dist.git#2.2.4
bower validate      2.2.4 against https://github.com/jquery/jquery-dist.git#~2.2.0
bower download      https://github.com/ten1seven/what-input/archive/v1.1.4.tar.gz
bower extract       what-input#~1.1.2 archive.tar.gz
bower resolved      https://github.com/ten1seven/what-input.git#1.1.4
bower install       foundation-sites#6.2.0
bower install       font-awesome#4.6.1
bower install       jquery#2.2.4
bower install       what-input#1.1.4

foundation-sites#6.2.0 bower_components\foundation-sites
├── jquery#2.2.4
└── what-input#1.1.4

font-awesome#4.6.1 bower_components\font-awesome

jquery#2.2.4 bower_components\jquery

what-input#1.1.4 bower_components\what-input

还有 bower.json 文件内容:

cat bower_components/foundation-sites/bower.json
{
  "name": "foundation-sites",
  "version": "6.2.0",
  "main": [
    "scss/foundation.scss",
    "dist/foundation.js"
  ],
  "ignore": [
    "config",
    "docs",
    "gulp",
    "lib",
    "test",
    "composer.json",
    "CONTRIBUTING.md",
    "gulpfile.js",
    "meteor-README.md",
    "package.js",
    "package.json",
    "sache.json",
    ".editorconfig",
    ".npm",
    ".gitignore",
    ".npmignore",
    ".versions"
  ],
  "dependencies": {
    "jquery": "~2.2.0",
    "what-input": "~1.1.2"
  }
}

您使用哪个凉亭版本?我的是 1.8.0。

【讨论】:

    猜你喜欢
    • 2017-05-07
    • 2014-04-22
    • 2014-03-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-05-02
    • 1970-01-01
    相关资源
    最近更新 更多