|
阅读:6837回复:0
win10 执行vue命令报错error,提示无法加载文件 C:\Users\admin\AppData\Roaming\npm\vue.ps1
win10系统中,安装了vue脚手架后,报错,提示如下:
vue : 无法加载文件 C:\Users\admin\AppData\Roaming\npm\vue.ps1,因为在此系统上禁止运行脚本。有关详 细信息,请参阅 https:/ go.microsoft.com/fwlink/?LinkID=135170 中的 about_Execution_Policies。 所在位置 行:1 字符: 1 + vue + ~~~ + CategoryInfo : SecurityError: (:) [],PSSecurityException + FullyQualifiedErrorId : UnauthorizedAccess 原因:这是你的系统禁止运行脚本 解决方案: 1. 以管理员的身份打开Windows PowerShell(A) 2. 输入set-ExecutionPolicy RemoteSigned 3. 选择Y 或者A ,就好了 参考:https://www.cnblogs.com/xuan666/p/11933607.html |
|
|