React

[React 프로젝트] 프로젝트 생성 / 발생에러 및 해결

sian han 2022. 11. 28. 23:28

▶ React 프로젝트 생성

 

PowerShell 관리자 권한으로 실행

cd C:/Users/user/desktop/proj
npx create-react-app {프로젝트 이름}

이런 화면 뜨면 준비 OK

 

cd {프로젝트 이름}
npm start

 

Error

[eslint] Plugin "react" was conflicted between "package.json » eslint-config-react-app » C:\Users\user\desktop\proj\react-basic-proj\node_modules\eslint-config-react-app\base.js" and "BaseConfig » C:\Users\user\Desktop\proj\react-basic-proj\node_modules\eslint-config-react-app\base.js".

 

해결

package.json 파일 오픈 후 ctrl + s

Compiled successfully 로 상태 변경됨

브라우저가 자동으로 뜬 것을 확인할 수 있음 > 리액트 프로젝트 설치 완료 ~!

 


Error

ESLint: Please specify path to 'eslint' package

 

해결

npm install eslint@8.22.0 --save-exact

 

 

Error

typeerror: this.liboptions.parse is not a function

 

해결

$ npm install --g eslint

Intellij 껐다가 켜기 > 오류 사라져 있음

 

 

'React' 카테고리의 다른 글

[React] 메모장 SPA 어플리케이션  (0) 2022.12.18
[React] map / key  (0) 2022.07.06
[React] useEffect  (0) 2022.07.01
[React] useConext + Context API  (0) 2022.06.30
[React] useRef  (0) 2022.06.28