yarn : 無法加載文件 C:\Users\zzh\AppData\Roaming\npm\yarn.ps1,因爲在此係統上禁止運行腳本。有關詳細信
息,請參閱 http://go.microsoft.com/fwlink/?LinkID=135170 中的 about_Execution_Policies。
所在位置 行:1 字符: 1
- yarn add echarts
+ CategoryInfo : SecurityError: (:) [],PSSecurityException + FullyQualifiedErrorId : UnauthorizedAccess
解決方案
以管理員身份打開powershell, 執行命令:
set-ExecutionPolicy RemoteSigned
再次執行yarn命令即可。