报错:
yarn : File C:\Users\ivamp\AppData\Roaming\npm\yarn.ps1 cannot be loaded because running scripts is disabled on this sy
stem. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
+ yarn config set registry https://registry.npm.taobao.org/
+ ~~~~
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
解决方法
- 使用管理员权限打开 PowerShell
- 执行 Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
问题解决。
好粉嫩的博客
那当然