2018년 2월 19일 월요일

Microsoft Visual Studio - Package Installation Error

Error Message


---------------------------
Microsoft Visual Studio
---------------------------
Package Installation Error
Could not add all required packages to the project. The following packages failed to install from 'C:\Program Files (x86)\Microsoft Web Tools\Packages':

jQuery.1.10.2 : Failed to initialize the PowerShell host. If your PowerShell execution policy setting is set to AllSigned, open the Package Manager Console to initialize the host first.
Microsoft.Web.Infrastructure.1.0.0.0 : Failed to initialize the PowerShell host. If your PowerShell execution policy setting is set to AllSigned, open the Package Manager Console to initialize the host first.
Modernizr.2.6.2 : Failed to initialize the PowerShell host. If your PowerShell execution policy setting is set to AllSigned, open the Package Manager Console to initialize the host first.
---------------------------

---------------------------
Microsoft Visual Studio
---------------------------
Failed to initialize the PowerShell host. If your PowerShell execution policy setting is set to AllSigned, open the Package Manager Console to initialize the host first.
---------------------------


Solution

The command in PowerShell (as administrator) 
-----------------------------
start-job { Set-ExecutionPolicy Unrestricted } -RunAs32 | wait-job | Receive-Job
-----------------------------
Enter

Restart Visual Studio