npm install -g cnpm --registry=https://registry.npm.taobao.org
配置淘宝镜像之后在vs code 终端下载hexo之后hexo -v查看版本显示
无法加载文件XXXXXXXX.ps1,因为在此系统上禁止运行脚本
VS code是使用Power shell的,使用管理员打开Powershell

image.png
输入set-ExecutionPolicy RemoteSigned之后a回车

image.png
回到VS code hexo -v查看是否安装成功,OK了

image.png