简体   繁体   English

为什么不能在Package Manager控制台中运行bower update命令

[英]Why cannot run bower update command in Package Manager Console

Its an existing project and I want to upgrade jquery version in it. 它是一个现有项目,我想在其中升级jquery版本。 For that on package console manager(PMC) I ran bower update jquery --force-latest and even bower update jquery but to no avail. 为此,我在包控制台管理器(PMC)上运行了bower update jquery --force-latest甚至Bower update jquery,但无济于事。 It's giving error as shown in screenshot. 如屏幕截图所示,它给出了错误。

在此处输入图片说明

My bower.json file is in the project which I have located in PMC's Default Project as shown in figure: 我的bower.json文件位于我位于PMC的默认项目中的项目中,如图所示:

在此处输入图片说明

I later changed the version of jquery in .json file from "jquery": "2.1.3" to "jquery": "3.3.1" . 稍后,我将.json文件中的jquery版本从“ jquery”:“ 2.1.3”更改为“ jquery”:“ 3.3.1” Still no luck! 还是没有运气! I'm new to this and don't now what am I missing? 我是新手,现在不缺少什么?

Here's my bower.json file; 这是我的bower.json文件;

{ {
"name": "XXXXXXX.Web", “名称”:“ XXXXXXX.Web”,
"version": "0.0.0", “ version”:“ 0.0.0”,
"ignore": [ “忽视”: [
"**/.*", “** / *。”
"node_modules", “node_modules”
"bower_components", “bower_components”
"test", “测试”,
"tests" “测试”
], ]
"dependencies": { “依赖关系”:{
"angular": "1.3.15", “ angular”:“ 1.3.15”,
"jquery": "3.3.1", “ jquery”:“ 3.3.1”,
"jquery-ui": "1.12.1", “ jquery-ui”:“ 1.12.1”,
"angular-ui-router": "0.2.15", “ angular-ui-router”:“ 0.2.15”,
"lodash": "3.7.0", “ lodash”:“ 3.7.0”,
"angular-animate": "1.3.9", “ angular-animate”:“ 1.3.9”,
"animate.css": "3.2.0", “ animate.css”:“ 3.2.0”,
"angular-translate": "2.7.0", “ angular-translate”:“ 2.7.0”,
"amplify": "1.1.2", “放大”:“ 1.1.2”,
"angular-bootstrap": "0.13.0", “ angular-bootstrap”:“ 0.13.0”,
"moment": "momentjs#~2.5.1", “ moment”:“ momentjs#〜2.5.1”,
"bootstrap-tagsinput": "bootstrap-tagsinput#~0.4.2", “ bootstrap-tagsinput”:“ bootstrap-tagsinput#〜0.4.2”,
"autoNumeric": "1.9.30", “ autoNumeric”:“ 1.9.30”,
"highcharts": "4.1.5", “ highcharts”:“ 4.1.5”,
"nouislider": "nouislider#~7.0.6", “ nouislider”:“ nouislider#〜7.0.6”,
"fullcalendar": "2.3.1", “ fullcalendar”:“ 2.3.1”,
"Sortable": "1.2.0", “可分级”:“ 1.2.0”,
"tooltipster": "3.3.0", “ tooltipster”:“ 3.3.0”,
"jszip": "2.4.0", “ jszip”:“ 2.4.0”,
"blockui": "blockui#2.70", “ blockui”:“ blockui#2.70”,
"script.js": "2.5.7", “ script.js”:“ 2.5.7”,
"datatables": "1.10.8", “数据表”:“ 1.10.8”,
"jquery.maskedinput": "1.4.1", “ jquery.maskedinput”:“ 1.4.1”,
"clockpicker": "0.0.7", “ clockpicker”:“ 0.0.7”,
"mustache.js": "2.1.3", “ mustache.js”:“ 2.1.3”,
"select2": "4.0.3", “ select2”:“ 4.0.3”,
"summernote": "0.6.14", “ summernote”:“ 0.6.14”,
"dropzone": "4.0.1", “ dropzone”:“ 4.0.1”,
"swiper": "2.7.6", “ swiper”:“ 2.7.6”,
"keyboard": "1.25.13", “键盘”:“ 1.25.13”,
"history.js": "1.8.0", “ history.js”:“ 1.8.0”,
"google-maps": "^3.2.1" “ google-maps”:“ ^ 3.2.1”
}, },
"resolutions": { “决议”:{
"angular": "1.3.15" “ angular”:“ 1.3.15”
} }
} }

I was using Visual Studio (VS 2013) which contains old GIT version. 我正在使用包含旧GIT版本的Visual Studio(VS 2013)。 I updated it with latest and command worked successfully. 我将其更新为最新,并且命令成功运行。 Don't forget to remove the older version of GIT through Control Panel 不要忘记通过控制面板删除旧版本的GIT

Between, I figured out that command could be also be run through ordinary command prompt. 之间,我发现该命令也可以通过普通命令提示符运行。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法以root身份运行Bower,Debian中的Bower配置文件在哪里? - Cannot run Bower as Root, where is Bower Configuration file in Debian? 为什么安装Bower会将我的jQuery版本更新为2.1.1? - Why does Bower install update my jQuery version to 2.1.1? EJB实体管理器remove()导致无法删除或更新父行 - EJB entity manager remove() result in Cannot delete or update a parent row 通过Visual Studio中的Package Console Manager将jQuery版本从2.1.1降级到1.9.1 - Downgrade jQuery version from 2.1.1 to 1.9.1 via Package Console Manager from Visual Studio Asp.Net核心程序包管理器控制台。 安装NuGet库而不创建库/脚本文件夹 - Asp.Net Core Package Manager Console. Installing NuGet library not creating a library/script folder 为什么复选框无法更新数据库 - Why checkbox cannot update the database 如何使用已安装的软件包更新bower.json? - How to update bower.json with installed packages? 为什么此函数在运行时会给出错误,但如果复制到控制台却不会给出错误? - Why does this function give an error when run, but not if copied to console? 我们可以更改 Bower.json 中的 jQuery 包版本吗 - Can we change the jQuery package version in Bower.json Bower - 如何仅安装jquery.js而不是整个包? - Bower - How to install jquery.js only and not the whole package?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM