zoukankan      html  css  js  c++  java
  • 执行cmd命令时:因为在此系统上禁止运行脚本的解决方法

    转载:(两者结合,才是双赢)

    https://blog.csdn.net/Gabriel_wei/article/details/102449719

    https://www.jianshu.com/p/87f9829dc516

    一、在新的台式机电脑上面使用vue-cli脚手架构建新的项目的时候出现了下面的错误信息:

     

    二、一定要以管理员的身份启动powershell,并实行set-ExecutionPolicy RemoteSigned命令

    下图可以看到原来是无法运行对的,执行了上面的命令后就可以了,如下图

    三、详细说明
    Restricted 执行策略不允许任何脚本运行。
    AllSigned 和 RemoteSigned 执行策略可防止 Windows PowerShell 运行没有数字签名的脚本。

    本主题说明如何运行所选未签名脚本(即使在执行策略为 RemoteSigned 的情况下),还说明如何对
    脚本进行签名以便您自己使用。

    有关 Windows PowerShell 执行策略的详细信息,请参阅 about_Execution_Policy。

    允许运行签名脚本:RemoteSigned

    四、输出类似以下内容,说明启动成功,(恭喜你  ^_^)

     此时,你可以打开你的浏览器,然后输入:

    http://localhost:8080/posts
    http://localhost:8080/comments
    http://localhost:8080/profile

    未来的我会感谢现在努力的自己。
  • 相关阅读:
    Ethical Hacking
    Ethical Hacking
    Ethical Hacking
    Ethical Hacking
    Ethical Hacking
    Ethical Hacking
    Ethical Hacking
    Can you answer these queries? HDU
    Count the Colors ZOJ
    Balanced Lineup POJ
  • 原文地址:https://www.cnblogs.com/cat-eol/p/11910605.html
Copyright © 2011-2022 走看看