我有一个aspnet核心1.0项目VS内鲍尔问题。我bower.json是这个鲍尔VS2015.3下载错误的版本
{
"name": "asp.net",
"private": true,
"dependencies": {
"bootstrap": "3.3.6",
"jquery": "2.2.4",
"jquery-validation": "1.14.0",
"jquery-validation-unobtrusive": "3.2.6"
}
}
但是,当我去那个凉亭下载库我发现jQuery是V3.1.0
/*eslint-disable no-unused-vars*/
/*!
* jQuery JavaScript Library v3.1.0
* https://jquery.com/
*
* Includes Sizzle.js
* https://sizzlejs.com/
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license
* https://jquery.org/license
*
* Date: 2016-07-07T21:44Z
*/
我认为这是我的机器,但它发生在三台不同的机器上。难道我做错了什么??
编辑: 我试着用这样的:
{
"name": "asp.net",
"private": true,
"dependencies": {
"jquery": "~2.2.4"
},
"resolutions": {
"jquery": "<=2.2.4"
}
}
在bower.json配置的这只包是jQuery和仍然安装的jQuery 3.0.1。为什么凉亭这样做? npm/bower的输出窗口显示:
PATH =。\ node_modules.bin; C:\ Program Files(x86)\ Microsoft Visual Studio 14.0 \ Web \ External;%PATH%; C:\ Program Files (x86)\ Microsoft Visual Studio 14.0 \ Web \ External \ git “C:\ Program Files(x86)\ Microsoft Visual Studio 14.0 \ Web \ External \ Bower.cmd”install --force-latest
bower jquery #〜2.2.4缓存https://github.com/jquery/jquery-dist.git#2.2.4
凉亭的jQuery#〜2.2.4验证2.2.4对https://github.com/jquery/jquery-dist.git#~2.2.4
凉亭jQuery的超分辨率不必要的分辨率:jQuery的#< = 2.2.4
凉亭的jQuery#〜2.2.4中安装jQuery 2.2.4#
的jQuery 2.2.4#的wwwroot \凉亭\ jQuery的
你是否在正确的文件夹找?鲍尔可能会安装到一个不同的文件夹比你想象的... –
是的,我正在看正确的文件夹。我配置了一个不同的文件夹。我也尝试过使用默认项目,它具有相同的行为 – snekkke
哦,我刚刚看到了一些......'--force-latest'被附加到你的bower命令中,所以它正是这样做的。视觉工作室的某处可能会有这样的设置。我没有在我面前,但我会寻找工具>选项中的凉亭设置...可能在Web下,然后是关于包的东西。 –