【问题标题】:Installing Bootstrap 4 Beta with Bower使用 Bower 安装 Bootstrap 4 Beta
【发布时间】:2017-08-15 08:03:18
【问题描述】:

我正在尝试使用 bower 安装最新版本的 Bootstrap 4 Beta。

使用这个命令:

bower install bootstrap#v4.0.0-beta

结果:

no matches found: bootstrap#v4.0.0-beta

我做错了什么吗?

我的 bower.json 如下所示:

{
"name": "bootstrap-starter",
"homepage": "https://github.com/marcuschristiansen/bootstrap-starter",
"authors": [
"Marcus Christiansen <christiansen.marcus@gmail.com>"
],
"description": "All dependencies for the bootstrap starter theme",
"main": "",
"license": "MIT",
"ignore": [
  "**/.*",
  "node_modules",
  "bower_components",
  "test",
  "tests"
],
"dependencies": {
  "jquery": "~2.2.3",
  "normalize-scss": "git@github.com:JohnAlbin/normalizescss.git#^4.1.0",
  "bootstrap": "4.0",
  "font-awesome": "git@github.com:FortAwesome/Font-Awesome.git",
  "bourbon": "^4.2.7",
  "neat": "^1.8.0"
  }
}

【问题讨论】:

    标签: json twitter-bootstrap bower bootstrap-4


    【解决方案1】:

    我刚刚使用相同的命令安装了 Bootstrap 4 Beta:bower install bootstrap#v4.0.0-beta,npm 版本为 5.3.0 和 Bower 1.8.0。

    您是否尝试过更新 npm 和 Bower 并运行相同的安装命令?

    【讨论】:

    • 我收到一条错误消息“bower EINVRES .. failed with 410”
    【解决方案2】:

    Bootstrap 丢弃凉亭支持:

    见:http://getbootstrap.com/docs/4.0/migration/#beta-2-changes

    Dropped Bower support as the package manager has been deprecated for alternatives (e.g., Yarn or npm).
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-09-25
      • 1970-01-01
      • 1970-01-01
      • 2014-01-27
      • 1970-01-01
      • 2016-01-14
      • 2018-02-19
      相关资源
      最近更新 更多