简体   繁体   English

我们可以更改 Bower.json 中的 jQuery 包版本吗

[英]Can we change the jQuery package version in Bower.json

In a preexisting application, I have bower.json file containing jQuery version 2.1.3.在预先存在的应用程序中,我有包含 jQuery 2.1.3 版的 bower.json 文件。 And I have been assigned the task to change it to the latest version.我被分配了将其更改为最新版本的任务。 I haven't worked with bower before but I just learned that it helps installing right version of the package and their dependencies.我之前没有使用过 bower,但我刚刚了解到它有助于安装正确版本的包及其依赖项。

Is it as simple as changing the version in the above manifest file?是否像更改上述清单文件中的版本一样简单? What else would I have to do to so that from then on, the application runs with the mentioned latest version(in manifest) of jQuery?我还需要做什么,以便从那时起,应用程序将使用上述最新版本(在清单中)的 jQuery 运行?

In my case I had old version of GIT as I was using VS 2013 - and the latest version for GIT came with VS 2017 - so I had to explicitly update the version of GIT and had to remove the older version from Control Panel for the command to work without error.就我而言,我在使用 VS 2013 时使用的是旧版本的 GIT - 最新版本的 GIT 随 VS 2017 一起提供 - 所以我必须明确更新 GIT 的版本,并且必须从控制面板中删除旧版本的命令无误地工作。

Command: bower update jquery命令:凉亭更新 jquery

在此处输入图片说明

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM