Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- stack 스택
- 영어회화
- 이진탐색
- opic
- topdown
- 오픽가격
- 메모이제이션
- 오픽공부법
- XML주석
- 안드로이드
- dynamicProgramming
- 이진탐색 #나무 자르기
- 오픽점수잘받는방법
- 바텀업
- 오픽
- 영어말하기
- 오픽노잼
- 피보나치수열
- 안드로이드주석
- 다이나믹프로그래밍
- 오픽노잼공부방법
- XML
- dp
- fibo
- 탑다운
- 디피
- English
- 주석
- ㅂ
Archives
RUBY
[React] yarn start 에러 본문
Manually installing incompatible versions is known to cause hard-to-debug issues
.
If you would prefer to ignore this check, add SKIP_PREFLIGHT_CHECK=true to an .e
nv file in your project.
That will permanently disable this message but you might encounter other issues.
To fix the dependency tree, try following the steps below in the exact order:
1. Delete package-lock.json (not package.json!) and/or yarn.lock in your proje
ct folder.
2. Delete node_modules in your project folder.
3. Remove "webpack" from dependencies and/or devDependencies in the package.js
on file in your project folder.
4. Run npm install or yarn, depending on the package manager you use.
In most cases, this should be enough to fix the problem.
If this has not helped, there are a few other things you can try:
5. If you used npm, install yarn (http://yarnpkg.com/) and repeat the above st
eps with it instead.
This may help because npm has known issues with package hoisting which may
get resolved in future versions.
6. Check if C:\Users\node_modules\webpack is outside your project direc
tory.
For example, you might have accidentally installed something in your home f
older.
7. Try running npm ls webpack in your project folder.
This will tell you which other package (apart from the expected react-scrip
ts) installed webpack.
If nothing else helps, add SKIP_PREFLIGHT_CHECK=true to an .env file in your pro
ject.
That would permanently disable this preflight check in case you want to proceed
anyway.
yarn start 하다가 에러가 났는데, node_modules 를 삭제해보고 여러 케이스를 해봐도 해결되지 않았다. 이것은 webpack의 버전이 맞지 않아 생기는 에러이다
해결방법
vscode로 개발중이였는데,
1. .env 파일을 만든다.
2. .env 파일에 아래 코드를 추가한다
SKIP_PREFLIGHT_CHECK=true
Comments