React

[React] React App Install

라임오렌지원 2022. 12. 13. 16:52

React 프로젝트를 하려고 했는데 create-react-app 순간부터 에러가 발생했다..

그래서 그냥 프로젝트 다 날리고 다시 찾은 방법으로 다시 install

VSCode의 터미널을 사용했다.

 

 


 

 

1. npm을 통해 yarn 을 설치

npm install -g yarn

 

2. create-react-app 도구 설치

(신기했음)

npm install -g create-react-app

 

3. 설치됐나 확인

create-react-app -v

 

4. 프로젝트 생성

npx create-react-app my-react-app

 

까지 하면, 디렉토리가 새로 생긴다.

 

cd my-react-app
yarn start

생성된 디렉토리에 들어가서 yarn start 까지하면 성공

 


참고사이트

https://malonmiming.tistory.com/109

 

[React] React.js (create-react-app 도구) 간단하게 설치하기

React js (create-react-app) 설치 설치 순서 node js npm yarn create-react-app 도구 visual studio code (에디터) git * 2~4번은 윈도우 cmd를 이용하여 설치 1. node js 설치 - https://nodejs.org/ko/ 에서 - 8.12.0 LTS 버전 설치 - cmd

malonmiming.tistory.com

 

728x90