개발을 간바루Joy 하게

LNMP React 설치방법 본문

프로그래밍/React

LNMP React 설치방법

New! Game 2021. 10. 6. 14:50

1. Composer 설치

https://getcomposer.org/download/

 

Composer

Download Composer Latest: v2.1.9 To quickly install Composer in the current directory, run the following script in your terminal. To automate the installation, use the guide on installing Composer programmatically. php -r "copy('https://getcomposer.org/ins

getcomposer.org

 

2. Node js 설치

https://ganbarujoy.tistory.com/136

 

[Centos7] nodejs 최신버전 설치

//nodejs 삭제후 최신버전 설치 먼저 캐시를 지워줍니다. npm cache clean -f 현재 설치되어있는 nodejs를 삭제 해줍니다. sudo yum remove -y nodejs npm Nodejs 공식 홈페이지에 접속하여 설치할 버전을 체크합..

ganbarujoy.tistory.com

 

 

3. react 설치

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

 

설치를 했는데 다음과 같은 메세지가 나온 후 설치가 안되는 경우가 있습니다.

npm 을 최신버전으로 업데이트를 해줍니다.

 

npm install -g npm@latest

 

 

4. React 실행

npm start