[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·WEB/error

🚨 문제 상황

 

🥁 해결 방법

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

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

 

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

 

2. 실행 정책 확인

Get-ExecutionPolicy

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

 

3. 실행 정책 변경

Set-ExecutionPolicy RemoteSigned -Scope CurrentUser

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

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

 

이제 yarn을 사용할 수 있다!

 

반응형

'WEB > error' 카테고리의 다른 글

[React] svgr 세팅 - Duplicate identifier 'src'.  (0) 2024.11.14
[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
'WEB/error' 카테고리의 다른 글
  • [React] svgr 세팅 - Duplicate identifier 'src'.
  • [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.
올콩
올콩
콩 심은 데 콩 난다
  • 올콩
    콩스토리
    올콩
  • 전체
    오늘
    어제
    • 분류 전체보기 (147) N
      • SSAFY (10)
      • Algorithm (73) N
        • 이론 (5)
        • 백준 (BOJ) (67) N
        • 프로그래머스 (1)
      • Language (9)
        • JavaScript (0)
        • TypeScript (0)
        • Java (9)
        • Python (0)
      • Library & Runtime (15)
        • React (13)
        • Node.js (2)
      • Framework (9)
        • 이론 (2)
        • Next.js (3)
        • Vue (4)
      • DevOps (3)
        • Git (3)
      • WEB (18)
        • HTML (9)
        • error (7)
        • etc (2)
      • Computer (5)
        • 자격증 (2)
        • tip (2)
        • etc (1)
      • CS (5)
        • Network (1)
        • Blockchain (4)
  • 블로그 메뉴

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

  • 공지사항

  • 인기 글

  • 태그

    티스토리챌린지
    bfs
    딕셔너리
    카카오맵
    github
    SSAFYcial
    강의
    재귀
    vue
    싸피
    렌더링최적화
    SSAFY
    Error
    Algorithm
    html5
    React
    백준
    DP
    알고리즘
    Java
    Next.js
    자바
    파이썬
    해시
    블록체인
    오블완
    우선순위큐
    dfs
    kakaomap
    누적합
  • 최근 댓글

  • 최근 글

  • 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)를 참조하십시오.
상단으로

티스토리툴바