뭐든 즐기면서 ;)

yarn : 이 시스템에서 스크립트를 실행할 수 없으므로 본문

Error

yarn : 이 시스템에서 스크립트를 실행할 수 없으므로

Tada.*+ 2023. 10. 5. 16:38
728x90

Error 내용

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

해결 방법

간단히 결론만 말하면 node와 package간의 버전 호환이 되지 않아 생기는 문제였음.

* git bash 툴을 이용해 작업함.

> yarn install

위 명령어를 git bash 툴을 통해 실행을 하니 아래와 같은 오류 메세지가 확인 됨.

Error 내용

error styled-components@6.0.8: The engine "node" is incompatible with this module. Expected version ">= 16". Got "14.15.1"

간략히 해석하자면 이렇다. '현재 '14.15.1'버전을 사용하고 있고, 16이상의 버전을 사용해야 한다.'

node 버전을 nvm을 이용해 변경 후 실행하니 잘 된다.


nvm 참고 url

window 설치 및 사용법 : https://tadaiswhatever.tistory.com/319

linux 설치 및 사용법 : https://tadaiswhatever.tistory.com/318

728x90
Comments