TypeScript

Windows 기반 TypeScript 개발환경 구축

차돌박이츄베릅 2023. 7. 27. 03:46

Node.js

  1. https://github.com/coreybutler/nvm-windows/releases페이지로 이동
  2. 스크롤 조금 내려서 Assets섹션의 nvm-setup.exe 다운로드 및 실행
  3. 설치 완료되면 윈도우 시작버튼 - powershell 검색
  4. 실행된 PowerShell에서 nvm install [설치할 노드 버전] 입력하여 Node.js 활성화ㄱ
  5. PowerShell에서 npm -v명령어로 npm이 제대로 설치됐는지 확인할 수 있음

 

npm으로 글로벌하게 TypeScript 설치하기

  1. PowerShell터미널 종료하고 윈도우 시작버튼 - cmd 검색
  2. 실행된 명령 프롬프트에서 npm install typescript -g를 실행하여 TypeScript를 글로벌하게 설치
  3. 명령 프롬프트에 tsc 명령어로 TypeScript가 제대로 설치됐는지 확인할 수 있음