【问题标题】:firebase.ps1 cannot be loaded because running scripts flutterfire_cli errorfirebase.ps1 无法加载,因为运行脚本 flutterfire_cli 错误
【发布时间】:2022-07-22 04:00:09
【问题描述】:

firebase:文件 C:\Users\kami\AppData\Roaming\npm\firebase.ps1 无法加载,因为正在运行脚本 在这个系统上被禁用。有关详细信息,请参阅 about_Execution_Policies,网址为 https://go.microsoft.com/fwlink/?LinkID=135170。 在 line:1 char:1

  • firebase --version
  •   + CategoryInfo          : SecurityError: (:) [], PSSecurityException
      + FullyQualifiedErrorId : UnauthorizedAccess
    

【问题讨论】:

    标签: flutter firebase


    【解决方案1】:

    这可能是由于当前用户具有未定义的 ExecutionPolicy。

    以管理员身份运行 PowerShell,您可以尝试以下操作:

    Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted

    复制上面的命令并将其粘贴到powershell上按Enter。 然后输入 AEnter

    【讨论】:

      猜你喜欢
      • 2019-03-10
      • 2019-10-05
      • 2021-10-27
      • 2017-04-28
      • 2020-03-06
      • 2021-02-22
      • 1970-01-01
      • 1970-01-01
      • 2020-09-03
      相关资源
      最近更新 更多