简体   繁体   English

无法运行命令“vue create app1”

[英]unable to run command "vue create app1"

when i try to run any command at cli it gives this error:当我尝试在 cli 上运行任何命令时,它会出现此错误:

vue: File C:\Users\john\AppData\Roaming\npm\vue.ps1 cannot be loaded because running scripts is disabled on this system. vue:文件 C:\Users\john\AppData\Roaming\npm\vue.ps1 无法加载,因为在此系统上禁用运行脚本。 For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.有关详细信息,请参阅 https 上的 about_Execution_Policies:/go.microsoft.com/fwlink/?LinkID=135170。 At line:1 char:1在行:1 字符:1

  • vue create app1 vue 创建 app1
  •  + CategoryInfo: SecurityError: (:) [], PSSecurityException + FullyQualifiedErrorId: UnauthorizedAccess

any solution to solve it解决它的任何解决方案

If you only tried to run it with PowerShell, switch to CMD and run the command.如果您只尝试使用 PowerShell 运行它,请切换到 CMD 并运行命令。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM