React 시작 - Create React App 셋팅

최대 1 분 소요

1. node.js , vscode 설치
2. npm install -g create-react-app
npm install -g create-react-app

2번에서 인증서 오류 발생시 ( npm ERR! code SELF_SIGNED_CERT_IN_CHAIN) 다음을 먼저 실행

npm config set registry="http://registry.npmjs.org/"
npm config set strict-ssl false -g 
3. create-react-app my-react-app
create-react-app my-react-app
4. cd my-react-app
cd my-react-app
5. npm start
npm start

태그:

업데이트: