touch.ps1 无法加载,因为在此系统上禁用运行脚本

问题描述 投票:0回答:1

PS C:\projects\Node Series -ExpressServer> touch index2.js touch : 文件 C:\Program Files 无法加载 odejs ouch.ps1,因为在此系统上禁用运行脚本。有关详细信息,请参阅 https://go.microsoft.com/fwlink/?LinkID=135170 上的 about_Execution_Policies。链接 ID=135170。 在行:1 字符:1

  • 触摸index2.js
  •   + CategoryInfo          : SecurityError: (:) [], PSSecurityException
      + FullyQualifiedErrorId : UnauthorizedAccess
    
touch editor nano
1个回答
0
投票

在 Vs Code 中将终端从 powershell 更改为 cmd 提示符,问题将得到解决。

© www.soinside.com 2019 - 2024. All rights reserved.