running scripts with venv or npm disabled in visual-studio-code - Stack Overflow

Following is the error received while trying to set python-venv or npm-init in visual-studio-code.cann

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
Add a comment  | 

1 Answer 1

Reset to default 0

This 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

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1743961366a4536745.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信