Error ⛔️ npm start 에러

문다연·2021년 9월 14일
0

Error and Solve

목록 보기
2/4
post-thumbnail

react 프로젝트를 실행하다가
⛔️ The problem is

There might be a problem with the project dependency tree. It is likely not a bug in Create React App, but something you need to fix locally.

The react-scripts package provided by Create React App requires a dependency:

"webpack": "4.29.6"

Don't try to install it manually: your package manager does it automatically. However, a different version of webpack was detected higher up in the tree:

...

⚠️ Why it happens
가이드가 너무 길어서 읽다가 해보지도 않고 그냥 구글링해봄
홈에 있는 노드모듈 파일을 지우면 해결된다

✅ How to solve

cd ~
rm -rf node_modules

+) 근데 생성해둔 리액트 프로젝트도 같이 없어짐..
그냥 다시 생성해주고 npm start하면 크롬창이 잘 뜬당

profile
ios-moon.tistory.com 이전했어요 🚛

0개의 댓글