Web: html ccs javascript react

WSL 설치해서 cra 시작하기

jiheek 2023. 11. 4. 22:33

WSL: Windows Subsystem for Linux

cra: create-react-app

 

WSL 설치

wsl --install

Ubuntu 22.04가 설치된다. 설치 후 다시 시작하면 wsl을 검색 및 실행할 수 있다.

lsb_release -a

 

Node 설치 및 CRA

nvm install --lts #최신 버전 node 설치
npm i -g typescript ts-node #타입스크립트 컴파일러 설치
npx create-react-app <프로젝트 이름> --template typescript #Node.js 프로젝트 생성