inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

비전공자를 위한 진짜 입문 올인원 개발 부트캠프

Expo 설치하기

expo 설치 후 npm start 문제

2201

iness97

작성한 질문수 2

0

안녕하세요.

구글/리부팅/ 재설치 다 해도 안되어서 질문 드립니다

(저는 VSCode 터미널 에서 관리자 권한 때문인지 install 이 안되어서 아래 처럼 콘솔을 관리자 모드로 열어서 진행합니다)

C:\Projects\1_learn_all_with_javascript\grap-market-mobile>npm start

> grap-market-mobile@1.0.0 start

> expo start

Starting project at C:\Projects\1_learn_all_with_javascript\grap-market-mobile

CommandError: "react-native-web" is added as a dependency in your project's package.json but it doesn't seem to be installed. Please run "yarn" or "npm install" to fix this issue.

 

위 처럼 표시 되어서

npm install react-native-web

으로 설치 해도 아래와 같은 메세지와 함께 진행 안됩니다.

C:\Projects\1_learn_all_with_javascript\grap-market-mobile>npm install react-native-web

npm ERR! code ERESOLVE

npm ERR! ERESOLVE unable to resolve dependency tree

npm ERR!

npm ERR! While resolving: grap-market-mobile@1.0.0

npm ERR! Found: react@18.0.0

npm ERR! node_modules/react

npm ERR! react@"18.0.0" from the root project

npm ERR! peer react@"^17.0.2 || ^18.0.0" from react-native-web@0.18.9

npm ERR! node_modules/react-native-web

npm ERR! react-native-web@"~0.18.7" from the root project

npm ERR!

npm ERR! Could not resolve dependency:

npm ERR! peer react@"^18.2.0" from react-dom@18.2.0

npm ERR! node_modules/react-dom

npm ERR! peer react-dom@"^17.0.2 || ^18.0.0" from react-native-web@0.18.9

npm ERR! node_modules/react-native-web

npm ERR! react-native-web@"~0.18.7" from the root project

npm ERR!

npm ERR! Fix the upstream dependency conflict, or retry

npm ERR! this command with --force, or --legacy-peer-deps

npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

npm ERR!

npm ERR! See C:\Users\iness\AppData\Local\npm-cache\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:

npm ERR! C:\Users\iness\AppData\Local\npm-cache\_logs\2022-10-23T17_27_19_403Z-debug-0.log

다른분 글 보니 react-dom 설치 해보라는 글 있어서 해봤는데 똑같이 안됩니다.

expo start --web 으로 해보니 아래와 같이 나와서 진행하니

It looks like you're trying to use web support but don't have the required dependencies installed. Would you like to install react-native-web, react-dom? ... yes

 

아래처럼 에러가 발생됩니다.

 

× Failed to install react-native-web@~0.18.7, react-dom with error: npm exited with non-zero code: 1

npm exited with non-zero code: 1commended in SDK 46 and higher), run:

Error: npm exited with non-zero code: 1

at ChildProcess.completionListener (C:\Users\iness\AppData\Roaming\npm\node_modules\expo-cli\node_modules\@expo\spawn-async\src\spawnAsync.ts:65:13)

at Object.onceWrapper (node:events:628:26)th_javascript\grap-market-mobile

at ChildProcess.emit (node:events:513:28)

at ChildProcess.cp.emit (C:\Users\iness\AppData\Roaming\npm\node_modules\expo-cli\node_modules\cross-spawn\lib\enoent.js:34:29)

at maybeClose (node:internal/child_process:1093:16)

at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)

...

at spawnAsync (C:\Users\iness\AppData\Roaming\npm\node_modules\expo-cli\node_modules\@expo\spawn-async\src\spawnAsync.ts:26:19)

at NpmPackageManager._runAsync (C:\Users\iness\AppData\Roaming\npm\node_modules\expo-cli\node_modules\@expo\package-manager\src\NodePackageManagers.ts:166:31)

at NpmPackageManager.installAsync (C:\Users\iness\AppData\Roaming\npm\node_modules\expo-cli\node_modules\@expo\package-manager\src\NodePackageManagers.ts:82:16)

at NpmPackageManager.addWithParametersAsync (C:\Users\iness\AppData\Roaming\npm\node_modules\expo-cli\node_modules\@expo\package-manager\src\NodePackageManagers.ts:96:18)

at NpmPackageManager.addAsync (C:\Users\iness\AppData\Roaming\npm\node_modules\expo-cli\node_modules\@expo\package-manager\src\NodePackageManagers.ts:109:5)

at installPackagesAsync (C:\Users\iness\AppData\Roaming\npm\node_modules\expo-cli\src\commands\utils\web\ensureWebSetup.ts:208:5)

at ensureWebDependenciesInstalledAsync (C:\Users\iness\AppData\Roaming\npm\node_modules\expo-cli\src\commands\utils\web\ensureWebSetup.ts:134:7)

at ensureWebSupportSetupAsync (C:\Users\iness\AppData\Roaming\npm\node_modules\expo-cli\src\commands\utils\web\ensureWebSetup.ts:47:3)

at actionAsync (C:\Users\iness\AppData\Roaming\npm\node_modules\expo-cli\src\commands\start\startAsync.ts:47:5)

at C:\Users\iness\AppData\Roaming\npm\node_modules\expo-cli\src\commands\start.ts:34:16

어떻게 진행 해야 할까요?

 

 

 

express nodejs tensorflow 머신러닝 배워볼래요? HTML/CSS react react-native javascript

답변 1

0

iness97

npm install react-dom@18.0

하고 나서 또 뭐 설치하라고 해서 설치하니 뜨네요.

하지만 교육 영상과는 다르게 프롬프트에서 w 를 눌러야 웹으로 확인할 수 있네요.

[해결]그랩님 답변 주세요.

0

171

2

그랩님의 답변을 기다립니다/102강 전반적인 에러

0

146

2

[그랩님께]101강 안드로이드 에러들(Key prop)해결방법 궁금합니다.

0

128

2

[재질문][그랩님 답변 부탁드립니다]101강

0

145

2

[그랩님 답변 부탁드립니다]101강 Axios 에러와 502 Bad Gateway 질문

0

101

2

Ngrok 설치 후 forwarding Url 에러

0

135

2

[그랩님께,Ngrok 악성코드 인식 해결방법]질문 드립니다.

0

227

2

Ngrok 설치 후 forwarding Url로 연결 불가

0

143

1

그랩님,[꼭] 답변 부탁드립니다.

0

72

1

[꼭][[꼭] 그랩님, 답변 부탁드립니다], Failed to load resource: the server responded with a status of 404 (Not Found) 상품 상세 페이지 질문입니다.

0

157

1

6강/7강 수업

0

54

1

그랩님, 상품 상세 페이지 에러와 의문점 질문드립니다.

0

101

2

그랩님, 해결되지 않은 에러 메시지 [꼭] 답변 부탁 드립니다.

0

139

2

[재 질문]Cannot read properties of undefined (reading 'map') TypeError: Cannot read properties of undefined (reading 'map') 에러 해결 어떻게 하나요?

0

92

1

Cannot read properties of undefined (reading 'map') TypeError: Cannot read properties of undefined (reading 'map') 에러 해결 어떻게 하나요?

0

131

2

일반적인 css 꾸미기에서 width와 height의 값?

0

96

2

Windows에서의 업로드 후 홈화면 상품이미지 오류 해결방법

0

201

1

그랩마켓 웹화면 구현하기 -2 질문입니다.

0

126

1

react에 반영이 되지 않습니다.

0

246

1

터미널 npm install -g create-react-app 작성 후 오류

0

423

1

create-react-app my app 실행 시 에러

0

358

2

포스트맨 질문

0

101

1

<꼭 답변 부탁 드립니다>그랩선생님, [컴포넌트 사용하기] 강의에서 질문 있습니다.

0

261

2

그랩선생님, 질문 답변 부탁 드립니다.vscode에서 npm install -g create-react-app 입력 후 에러 입니다.

0

486

2