Saturday, April 11, 2020

Visual Code Studio - Running Scripts Error


If you get the following error while trying to execute a script on Visual Code Studio

cannot be loaded because running scripts is disabled on this system. For
more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
+ parcel index.html
+ ~~~~~~
    + CategoryInfo          : SecurityError: (:) [], PSSecurityException
    + FullyQualifiedErrorId : UnauthorizedAccess


SOLUTION:

Open PowerShell as Administrator

Paste and run the following:
set-executionpolicy remotesigned

No comments:

Post a Comment