美文网首页
Vue 指令被禁用

Vue 指令被禁用

作者: 不语翕 | 来源:发表于2021-10-26 18:06 被阅读0次
vue init webpack 
vue : 无法加载文件 D:\MyConfiguration\gyn11565\AppData\Roaming\npm\vue.ps1,因为在此系统上禁止运行脚本。有关详细信息,
请参阅 https:/go.microsoft.com/fwlink/?LinkID=135170 中的 about_Execution_Policies。
所在位置 行:1 字符: 1
+ vue init webpack
+ ~~~
    + CategoryInfo          : SecurityError: (:) [],PSSecurityException
    + FullyQualifiedErrorId : UnauthorizedAccess
image.png

解决方法

  1. 在Windows应用中找到Windows PowerShell,以管理员运行。
  2. 输入set-ExecutionPolicy RemoteSigned, 然后回车在输入A再回车即可解决。
    在这里插入图片描述

引子:https://blog.csdn.net/P_ning/article/details/106559684

相关文章

网友评论

      本文标题:Vue 指令被禁用

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