不要用powershell,用原生cmd运行即可。

问题原文

hexo : File C:\Users\david\AppData\Roaming\npm\hexo.ps1 cannot be loaded because running scripts is disabled on this
system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
+ hexo clean
+ ~~~~
    + CategoryInfo          : SecurityError: (:) [], PSSecurityException
    + FullyQualifiedErrorId : UnauthorizedAccess

解决方法

在这里插入图片描述

更多推荐