[yarn] yarn : 이 시스템에서 스크립트를 실행할 수 없으므로 C:\Users\user\AppData\Roaming\npm\yarn.ps1 파일을 로드할 수 없습니다. 자세한 내용은 about_Execution_Policies(https://go.microsoft.com/fwlink/?LinkID=135170)를 참조하십시오.

2024. 9. 13. 22:36·Trouble Shooting
반응형

🚨 문제 상황

 

🥁 해결 방법

윈도우에서 PowerShell의 실행 정책 때문에 발생한 문제라고 한다.

yarn.ps1 파일을 실행하려고 할 때, 시스템에서 스크립트 실행이 차단되고 있다.

 

1. PowerShell을 관리자 권한으로 실행

 

2. 실행 정책 확인

Get-ExecutionPolicy

Restricted로 설정되어 있었다. 이를 RemoteSigned로 변경해서 로컬에서 실행되는 스크립트는 허용하고, 원격에서 받은 스크립트는 서명이 필요하도록 설정한다.

 

3. 실행 정책 변경

Set-ExecutionPolicy RemoteSigned -Scope CurrentUser

위 명령어로 실행 정책을 RemoteSigned로 변경한다.

3번을 완료하고 2번을 다시 해보면 RemoteSigned라고 뜬다.

 

이제 yarn을 사용할 수 있다!

 

반응형

'Trouble Shooting' 카테고리의 다른 글

[Next.js] React Hydration Error  (0) 2024.10.21
[html] svg 높이 설정 에러  (0) 2024.10.21
[Spring] Name for argument of type [java.lang.String] not specified, and parameter name information not available via reflection. Ensure that the compiler uses the '-parameters' flag.  (2) 2024.04.23
[node.js] multer 파일 업로드 Unexpected field 에러  (0) 2022.05.15
'Trouble Shooting' 카테고리의 다른 글
  • [Next.js] React Hydration Error
  • [html] svg 높이 설정 에러
  • [Spring] Name for argument of type [java.lang.String] not specified, and parameter name information not available via reflection. Ensure that the compiler uses the '-parameters' flag.
  • [node.js] multer 파일 업로드 Unexpected field 에러
올콩
올콩
콩 심은 데 콩 난다
  • 올콩
    콩스토리
    올콩
  • 전체
    오늘
    어제
    • 분류 전체보기 (192) N
      • SSAFY (10)
      • Algorithm (112) N
        • 이론 (6)
        • 백준 (BOJ) (105) N
        • 프로그래머스 (1)
      • Trouble Shooting (9)
      • Frontend (6)
      • React (17)
      • Next.js (3)
      • Vue (4)
      • Node.js (2)
      • HTML (9)
      • DevOps (3)
        • Git (3)
      • Language (9)
        • JavaScript (0)
        • Java (9)
      • Embedded (1)
      • CS (5)
        • Network (1)
        • Blockchain (4)
      • 자격증 (2)
  • 블로그 메뉴

    • GitHub
    • 태그
    • 방명록
  • 링크

  • 공지사항

  • 인기 글

  • 태그

    bfs
    브루트포스
    파이썬
    강의
    React
    티스토리챌린지
    Heap
    중복조합
    Next.js
    수학
    순열
    SSAFY
    Java
    우선순위큐
    중복순열
    블록체인
    재귀
    Algorithm
    백준
    Error
    싸피
    DP
    알고리즘
    dfs
    오블완
    힙
    SSAFYcial
    구현
    html5
    백트래킹
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.3
올콩
[yarn] yarn : 이 시스템에서 스크립트를 실행할 수 없으므로 C:\Users\user\AppData\Roaming\npm\yarn.ps1 파일을 로드할 수 없습니다. 자세한 내용은 about_Execution_Policies(https://go.microsoft.com/fwlink/?LinkID=135170)를 참조하십시오.
상단으로

티스토리툴바