我正在尝试安装基础网站版本6.2.0。 这是我的bower.json文件:
{
"name": "asp.net",
"private": true,
"dependencies": {
"font-awesome": "4.6.1",
"foundation-sites": "6.2.0"
}
}
但是,当我查看已安装的基础站点库时,我发现它是版本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?
答案 0 :(得分:0)
一般来说,凉亭已经死了,不再推荐了。你可以切换到npm或纱线。
关于你的问题。 我无法重现这一点,但您没有提供更多信息。
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。