vue : 无法加载文件 C:\Users\苏辰\AppData\Roaming\npm\vue.ps1,因为在此系统上禁止运行脚本。有关详细信息,请参阅 https:/go.microsoft.com/fwlink/?LinkID=135170 中的 about_Execution_Policies。
所在位置 行:1 字符: 1
+ vue create demo1
+ ~~~
+ CategoryInfo : SecurityError: (:) [],PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
执行vue create时出现上述错误,是因为电脑本身的限制。
1.以管理员的身份打开cmd,输入get-ExecutionPolicy
发现是Restricted ,这时候只需要更改策略。
2.输入一下命令:set-ExecutionPolicy RemoteSigned -Scope CurrentUser更改电脑策略,就OK啦。