nodemon 在 VS Code 终端中无法工作?

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

这是显示的错误,我正在尝试运行我的服务器

nodemon .\index.js nodemon :文件 C:\Users yuga\AppData\漫游 下午 无法加载 oemon.ps1,因为在此系统上禁用了运行脚本。了解更多 有关信息,请参阅 https://go.microsoft.com/fwlink/? 上的 about_Execution_Policies 在行:1 字符:1

  • anodemon .\index.js
  •   + CategoryInfo          : SecurityError: (:) [], PSSecurityException
      + FullyQualifiedErrorId : UnauthorizedAccess
    
    

我使用 npm i -g nodemon 安装

node.js nodemon
1个回答
0
投票

以管理员身份打开 PowerShell 并输入:

Set-ExecutionPolicy RemoteSigned -Scope CurrentUser

这里我要注意的是,这与执行策略有关,所以我建议您阅读更多相关内容

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