Vscode에 있는 Powershell 터미널창에 yarn dev 명렁어 입력 시, 아래 오류 출력

 

PS C:\Users\Administrator\nextjs-blog> yarn dev

yarn : 이 시스템에서 스크립트를 실행할 수 없으므로 C:\Users\Administrator\AppData\Roaming\npm\ya

rn.ps1 파일을 로드할 수 없습니다. 자세한 내용은 about_Execution_Policies(https://go.microsoft.co

m/fwlink/?LinkID=135170)를 참조하십시오.

위치 줄:1 문자:1

+ yarn dev

+ ~~~~

    + CategoryInfo          : 보안 오류: (:) [], PSSecurityException

    + FullyQualifiedErrorId : UnauthorizedAccess

< 해결 방법>

 

Vscode에있는 "Powershell"이 아닌, 시작->Powershell 권리자 권한 실행->

Set-ExecutionPolicy RemoteSigned -Scope CurrentUser -Force 입력 후,엔터

-> Vscode에 다시 들어가서 year dev

+ Recent posts