PowerShell yarn 사용 불가 문제

Intro

# yarn.ps1 cannot be loaded because running scripts is disabled on this system

위와같은 powershell에서 yarn이 실행 불가능한 문제와 마주쳤다. 이는 현재 유저의 실행 정책이 설정되지 않아 마주한 문제이다

powershell을 관리자 권한으로 실행 후, 아래의 코드를 입력한다

Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted

Reference

연결문서