disease
vue : 无法加载文件 D:\Program Files\nodejs\node_global\vue.ps1,因为在此系统上禁止运行脚本。有关详细信息,请参阅 https:
/go.microsoft.com/fwlink/?LinkID=135170 中的 about_Execution_Policies。
所在位置 行:1 字符: 1
+ vue create siriup-vue
+ ~~~
+ CategoryInfo : SecurityError: (:) [],PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
The above problems are mainly caused by the security policy of PowerShell. You only need to modify the execution policy.
prescription
- Run PowerShell as administrator.
- View the current execution policy
The query result isget-ExecutionPolicy
Restricted
, indicating that the status is forbidden. - Execute the modification command to modify the policy
Enter it in the confirmation box that appearsset-ExecutionPolicy RemoteSigned
Y
. - Check whether the current execution policy has been modified to RemoteSigned
get-ExecutionPolicy
- cured by medicine