最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin4浏览0评论

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

发布评论

评论列表(0)

  1. 暂无评论