美文网首页
记录vs code终端 XXX -v 无法加载的解决

记录vs code终端 XXX -v 无法加载的解决

作者: 码枫云 | 来源:发表于2019-12-18 16:58 被阅读0次

    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

    相关文章

      网友评论

          本文标题:记录vs code终端 XXX -v 无法加载的解决

          本文链接:https://www.haomeiwen.com/subject/yxmunctx.html