使用Bower安装Bootstrap 4 Beta
问题描述:
我试图使用bower安装Bootstrap 4 Beta的最新版本。使用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 <[email protected]>"
],
"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": "[email protected]:JohnAlbin/normalizescss.git#^4.1.0",
"bootstrap": "4.0",
"font-awesome": "[email protected]:FortAwesome/Font-Awesome.git",
"bourbon": "^4.2.7",
"neat": "^1.8.0"
}
}
答
我刚安装引导4测试版使用相同的命令:bower install bootstrap#v4.0.0-beta
与NPM版本5.3.0和1.8.0鲍尔。
您是否尝试过更新npm和Bower并运行相同的安装命令?
答
引导滴凉亭支持:
参见: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).
我得到一个错误说 “凉亭EINVRES。与410失败” – virtualLast