🚨 tsc: 이 μ‹œμŠ€ν…œμ—μ„œ 슀크립트λ₯Ό μ‹€ν–‰ν•  수 μ—†μœΌλ―€λ‘œβ€¦

🚨 μ—λŸ¬ λ°œμƒ

image

tscλͺ…λ Ήμ–΄λ₯Ό μ΄μš©ν•΄μ„œ tsνŒŒμΌμ„ js파일둜 λ³€ν™˜ν•˜λŠ” μž‘μ—…μ„ ν•˜λ €κ³  ν•˜λŠ”λ° ν„°λ―Έλ„μ—μ„œ μ—λŸ¬κ°€ λ°œμƒν–ˆμŠ΅λ‹ˆλ‹€.

πŸ”¨ 해결방법

  1. Visual Studio Code κ΄€λ¦¬μž κΆŒν•œμœΌλ‘œ μ‹€ν–‰
  2. terminal에 μˆœμ„œλŒ€λ‘œ μž…λ ₯
$ Get-ExecutionPolicy
$ Set-ExecutionPolicy RemoteSigned

Restrictedμ—μ„œ RemoteSigned둜 λ³€κ²½ν•˜λŠ” κ³Όμ •μž…λ‹ˆλ‹€.

  • Restrcted: (μ œν•œλœ) κΈ°λ³Έ μ‹€ν–‰ μ •μ±…, λͺ…λ Ήμ–΄ ν•˜λ‚˜μ”© μ‹€ν–‰ κ°€λŠ₯, 슀크립트 νŒŒμΌμ„ λ‘œλ“œν•˜μ—¬ μ‹€ν–‰ν•  수 μ—†μŒ.
  • RomotedSigned: 둜컬 μ»΄ν“¨ν„°μ—μ„œ 본인이 μƒμ„±ν•œ 슀크립트만 μ‹€ν–‰ κ°€λŠ₯, μΈν„°λ„·μ—μ„œ λ‹€μš΄λ‘œλ“œν•œ μŠ€ν¬λ¦½νŠΈλŠ” μ‹ λ’°λœ λ°°ν¬μžμ— μ˜ν•΄ μ„œλͺ…λœ κ²ƒλ§Œ μ‹€ν–‰ν•  수 있음.

좜처

κΏ€λ²Œ μ½”λ”©

Leave a comment