vue create 命令报错

vue : 无法加载文件 D:Program Files odejs ode_globalvue.ps1,因为在此系统上禁止运行脚本。有关详细信息,请参阅 https:/go.microsoft 
.com/fwlink/?LinkID=135170 中的 about_Execution_Policies。
所在位置 行:1 字符: 1
+ vue add vuetify
    + CategoryInfo          : SecurityError: (:) [],PSSecurityException
    + FullyQualifiedErrorId : UnauthorizedAccess

解决问题

输入命令:Set-ExecutionPolicy -Scope CurrentUser

位于命令管道位置 1 的 cmdlet Set-ExecutionPolicy
请为以下参数提供值:
ExecutionPolicy:

继续输入 RemoteSigned

完成

输入get-executionPolicy,返回RemoteSigned

原因,用户权限不足,以管理员身份运行cmd亦可解决问题

原文地址:https://www.cnblogs.com/dangdanghepingping/p/14667657.html