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
728x90
'React' 카테고리의 다른 글
[React/yarn]CategoryInfo : 보안 오류: (:) [], PSSecurityException (0) | 2022.12.14 |
---|---|
[React] 화살표 함수 (즉시실행) (0) | 2022.11.22 |
[React]라이프사이클 메서드의 이해 (1) | 2022.11.21 |
[React] async await (0) | 2022.11.15 |
createBrowserHistory (0) | 2022.10.20 |