1

“Live Server”扩展没有出现在 Visual Studio 内的扩展市场上,也没有出现在“HTML Snippets”中,我尝试从 Web 浏览器下载扩展,当我尝试安装它时出现错误,这是日志文件

10/21/2021 10:57:03 PM - Microsoft VSIX Installer
10/21/2021 10:57:03 PM - -------------------------------------------
10/21/2021 10:57:03 PM - vsixinstaller.exe version:
10/21/2021 10:57:03 PM - 16.11.12
10/21/2021 10:57:03 PM - -------------------------------------------
10/21/2021 10:57:03 PM - Command line parameters:
10/21/2021 10:57:03 PM - C:\Program Files (x86)\Microsoft Visual Studio\Installer\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service\VSIXInstaller.exe,C:\Users\user\Desktop\ritwickdey.LiveServer-5.6.1.vsix
10/21/2021 10:57:03 PM - -------------------------------------------
10/21/2021 10:57:03 PM - Microsoft VSIX Installer
10/21/2021 10:57:03 PM - -------------------------------------------
10/21/2021 10:57:04 PM - Initializing Install...
10/21/2021 10:57:04 PM - Extension Details...
10/21/2021 10:57:04 PM -    Identifier         : LiveServer
10/21/2021 10:57:04 PM -    Name               : Live Server
10/21/2021 10:57:04 PM -    Author             : ritwickdey
10/21/2021 10:57:04 PM -    Version            : 5.6.1
10/21/2021 10:57:04 PM -    Description        : Launch a development local Server with live reload feature for static & dynamic pages
10/21/2021 10:57:04 PM -    Locale             : en-US
10/21/2021 10:57:04 PM -    MoreInfoURL        : 
10/21/2021 10:57:04 PM -    InstalledByMSI     : False
10/21/2021 10:57:04 PM -    SupportedFrameworkVersionRange : [0.0,2147483647.2147483647]
10/21/2021 10:57:04 PM - 
10/21/2021 10:57:04 PM -    SignatureState     : Unsigned
10/21/2021 10:57:04 PM -    Supported Products : 
10/21/2021 10:57:04 PM -        Microsoft.VisualStudio.Code
10/21/2021 10:57:04 PM -            Version : 
10/21/2021 10:57:04 PM - 
10/21/2021 10:57:04 PM -    References         : 
10/21/2021 10:57:04 PM - Signature Details...
10/21/2021 10:57:04 PM -    Extension is not signed.
10/21/2021 10:57:04 PM - 
10/21/2021 10:57:04 PM - Searching for applicable products...
10/21/2021 10:57:04 PM - Found installed product - Global Location
10/21/2021 10:57:05 PM - Found installed product - Visual Studio Community 2019
10/21/2021 10:57:05 PM - VSIXInstaller.NoApplicableSKUsException: One or more extensions are for Visual Studio Code. Try installing them in Visual Studio Code.
   at VSIXInstaller.ExtensionService.GetInstallableDataImpl(IInstallableExtension extension, String extensionPackParentName, Boolean isRepairSupported, IStateData stateData, IEnumerable`1& skuData)
   at VSIXInstaller.ExtensionService.GetInstallableData(String vsixPath, String extensionPackParentName, Boolean isRepairSupported, IStateData stateData, IEnumerable`1& skuData)
   at VSIXInstaller.ExtensionPackService.IsExtensionPack(IStateData stateData, Boolean isRepairSupported)
   at VSIXInstaller.ExtensionPackService.ExpandExtensionPackToInstall(IStateData stateData, Boolean isRepairSupported)
   at VSIXInstaller.App.Initialize(Boolean isRepairSupported)
   at VSIXInstaller.App.Initialize()
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)

知道如何解决此问题,或者是否有实时服务器的替代方案?

4

1 回答 1

1

Live Server 最近被弃用了,事实上有一个内置的 VSCode。至于 HTML 片段,它表明该扩展尚未签名,这意味着它未经过验证。这意味着出于安全原因,您无法安装该扩展程序。

于 2021-10-21T21:16:38.410 回答