这是显示的错误,我正在尝试运行我的服务器
nodemon .\index.js nodemon :文件 C:\Users yuga\AppData\漫游 下午 无法加载 oemon.ps1,因为在此系统上禁用了运行脚本。了解更多 有关信息,请参阅 https://go.microsoft.com/fwlink/? 上的 about_Execution_Policies 在行:1 字符:1
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
我使用 npm i -g nodemon 安装
以管理员身份打开 PowerShell 并输入:
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
这里我要注意的是,这与执行策略有关,所以我建议您阅读更多相关内容