在命令行中输入hexo -v报以下错误:
无法加载文件 C:\Users\Administrator\AppData\Roaming\npm\hexo.ps1,因为在此系统中禁止执行脚本。
解决方案如下:
win10以管理员身份运行powershell;
输入get-ExecutionPolicy,执行,显示Restricted,则表明该策略是禁止的;
执行set-ExecutionPolicy RemoteSigned ,然后选择Y,即可修复;
在命令行中输入hexo -v报以下错误:
无法加载文件 C:\Users\Administrator\AppData\Roaming\npm\hexo.ps1,因为在此系统中禁止执行脚本。
解决方案如下:
win10以管理员身份运行powershell;
输入get-ExecutionPolicy,执行,显示Restricted,则表明该策略是禁止的;
执行set-ExecutionPolicy RemoteSigned ,然后选择Y,即可修复;
相关文章: