简体   繁体   English

如何从 vscode 获取最新版本的 eslint 插件?

[英]How do I get the latest version of the eslint plugin from vscode?

If I download the eslint plugin, it will continue to download to the previous version.如果我下载了eslint插件,它会继续下载到以前的版本。 I want to download the latest eslint plugin.我想下载最新的 eslint 插件。 Why does this happen?为什么会这样? How do I get the latest version of the eslint plugin from vscode?如何从 vscode 获取最新版本的 eslint 插件?

Before installation:安装前: 在此处输入图像描述

After installation:安装后: 在此处输入图像描述

You could try installing an extension from the command line by using the full extension name as an argument:您可以尝试使用完整的扩展名作为参数从命令行安装扩展:

code --install-extension dbaeumer.vscode-eslint

You could also use --force to avoid prompts.您也可以使用--force来避免提示。

Alternatively, you could click on the gear icon in the extensions panel and select Install Another Version and select the specific version you want.或者,您可以单击扩展面板中的齿轮图标,然后单击 select Install Another Version和 select 您想要的特定版本。

You should reload vscode if it is open after installing.如果安装后打开,则应重新加载 vscode。

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

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