在命令行中输入hexo -v报以下错误:

无法加载文件 C:\Users\Administrator\AppData\Roaming\npm\hexo.ps1,因为在此系统中禁止执行脚本。

解决方案如下:

win10以管理员身份运行powershell

输入get-ExecutionPolicy,执行,显示Restricted,则表明该策略是禁止的;

执行set-ExecutionPolicy RemoteSigned ,然后选择Y,即可修复;

hexo -v报错

相关文章:

  • 2022-12-23
  • 2021-06-07
  • 2021-07-02
  • 2022-12-23
  • 2021-07-26
  • 2021-04-25
  • 2022-12-23
  • 2021-12-31
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-11
  • 2021-06-19
  • 2021-11-02
  • 2021-11-24
相关资源
相似解决方案