기초 메모지

리액트(React) - 프로젝트 생성 본문

Frameworks, Platforms/React

리액트(React) - 프로젝트 생성

라큐브 2022. 3. 30. 09:35

자바스크립트 프로젝트 명령어

npx create-react-app [프로젝트_이름]

 

타입스크립트 프로젝트 명령어

npx create-react-app [프로젝트_이름] --template typescript

 

※ 프로젝트 이름 규칙 : 대문자, 공백 제외

 

 

'create-react-app' 패키지가 업데이트 되면 다음과 같은 메시지가 표시되면서 명령어가 듣지 않습니다.

프로젝트 생성할때 마다 'create-react-app' 패키지를 최신버전으로 설치하면 됩니다.

npx create-react-app@latest [프로젝트_이름] [--template typescript]

 

반응형
Comments