Following is the error received while trying to set python-venv or npm-init in visual-studio-code.
cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at xxx. Category-Info: Security-Error: (:) [], PS-Security-Exception Fully-Qualified-Error-Id : Unauthorised Access
Following is the error received while trying to set python-venv or npm-init in visual-studio-code.
cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at xxx. Category-Info: Security-Error: (:) [], PS-Security-Exception Fully-Qualified-Error-Id : Unauthorised Access
Share Improve this question asked Mar 31 at 7:52 herbert mosesherbert moses 1 1- Please provide enough code so others can better understand or reproduce the problem. – Community Bot Commented Apr 2 at 0:16
1 Answer
Reset to default 0This is because the user your running the script as has a undefined ExecutionPolicy
Open your powershell and write this command.
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted
Also take reference from cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at