[ React ] window + react install 윈도우에 리엑트 설치하기 > react

본문 바로가기

사이트 내 전체검색

react

[ React ] window + react install 윈도우에 리엑트 설치하기

작성일 20-05-15 11:28

페이지 정보

작성자 웹지기 조회 5,435회 댓글 0건

본문

기본적으로 설치해야 할 프로그램 목록

node.js

npm

yarn

create-react-app

editor( visual studio code 등등 본인이 사용하는 editor )

git

설치시 cmd 또는 cmder를 설치해서 사용 

 

1. node.js 설치

https://nodejs.org/ko/download/ 에서 윈도우용을 다운받아서 설치

2. npm 설치

node.js 설치시 자동으로 설치

3. yarn 설치

cmd 또는 cmder에서

npm install --global yarn

설치확인 : yarn -v

4. create-react-app 설치

cmd 또는 cmder에서

npm install -g create-react-app

또는

yarn global add create-react-app

5. 프로젝트 생성

설치를 원하는 폴더로 이동

예) d:\react 폴더에 생성하고 싶다면 

cd d:\react

npx create-react-app [프로젝트명]

cd [프로젝트명]

yarn start

react를 자동으로 실행하고 기본브라우져로 지정된 브라우져에 react 첫 화면이 나옴

경로는 대략 localhost:3000


추천0

비추천 0

댓글목록

등록된 댓글이 없습니다.

전체 3건 1 페이지

이미지 목록

게시물 검색
Copyright © 즐거운 코딩 생활 ( funyphp ). All rights reserved.
PC 버전으로 보기