npm :文件 C:\Program Files 奥德伊斯 pm.ps1 无法加载,因为在此系统上禁用了运行脚本。任何机构都有答案。帮助我

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

任何人都可以解决这个错误。

我在 VS Code 的 PowerShell 终端中运行此命令 (npm create vite@latest) 时遇到此错误。 那么,我应该怎么做才能解决这个错误呢?我还在尝试识别这个错误。

reactjs node.js powershell terminal
1个回答
0
投票

您需要在具有管理权限的 Powershell 提示符下运行

Set-ExecutionPolicy Unrestricted
。之后您可能还需要重新启动计算机。

来源

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