본문 바로가기
Error

vscode 터미널 보안 오류

by Ahngyuho 2024. 12. 30.

오류 내용

 

vscode의 터미널을 이용해서 npm 을 실행하려고 할 때 이런 오류 메시지가 나오는 경우가 있습니다.

 

Windows PowerShell 에서는 보안상 npm 실행을 막아두는 것 같습니다. 그래서 PowerShell로 vscode 에서 작업 하시는 경우 아래와 같이 설정을 바꿔야 합니다.

 

// 차례대로 입력
Restricted
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser