【发布时间】:2020-11-04 02:15:01
【问题描述】:
heroku : File C:\Users\mar\AppData\Roaming\npm\heroku.ps1 cannot be loaded. The file C:\Users\mar\AppData\Roaming\npm\heroku.ps1 is not digitally
signed. You cannot run this script on the current system. For more information about running scripts and setting execution policy, see
about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
这是我遇到的错误。我试过在 cmd 中运行“heroku -v”,它在那里工作,所以我知道它安装正确。但是,当我在 Visual Studio 中运行相同的命令时,会出现上述错误。我在管理员模式下运行 Visual Studio 代码,我也从管理员模式安装了 heroku。
我还在我的电脑设置中启用了开发者模式。
【问题讨论】:
标签: heroku visual-studio-code heroku-cli