React Native Error: react-devtools npm ERR! HTTPError: Response code 404 (Not Found) for https://github.com/electron/electron/releases/download/v9.4.4/electron-v9.4.4-darwin-arm64.zip

상황

react-devtools 버전 호환 문제로 다운그레이드 하라고 함, 하지만 적힌대로 커맨드 창에 입력하면 에러 발생


https://gist.github.com/bvaughn/4bc90775530873fdf8e7ade4a039e579

 

React DevTools: Unsupported backend version

React DevTools: Unsupported backend version. GitHub Gist: instantly share code, notes, and snippets.

gist.github.com

 

 

 

에러 메세지

npm ERR! code 1
npm ERR! path /opt/homebrew/lib/node_modules/react-devtools/node_modules/electron
npm ERR! command failed
npm ERR! command sh -c node install.js
npm ERR! HTTPError: Response code 404 (Not Found) for https://github.com/electron/electron/releases/download/v9.4.4/electron-v9.4.4-darwin-arm64.zip
npm ERR!     at EventEmitter.<anonymous> (/opt/homebrew/lib/node_modules/react-devtools/node_modules/got/source/as-stream.js:35:24)
npm ERR!     at EventEmitter.emit (node:events:390:28)
npm ERR!     at module.exports (/opt/homebrew/lib/node_modules/react-devtools/node_modules/got/source/get-response.js:22:10)
npm ERR!     at ClientRequest.handleResponse (/opt/homebrew/lib/node_modules/react-devtools/node_modules/got/source/request-as-event-emitter.js:155:5)
npm ERR!     at Object.onceWrapper (node:events:510:26)
npm ERR!     at ClientRequest.emit (node:events:402:35)
npm ERR!     at ClientRequest.origin.emit (/opt/homebrew/lib/node_modules/react-devtools/node_modules/@szmarczak/http-timer/source/index.js:37:11)
npm ERR!     at HTTPParser.parserOnIncomingClient [as onIncoming] (node:_http_client:618:27)
npm ERR!     at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17)
npm ERR!     at TLSSocket.socketOnData (node:_http_client:482:22)

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/seunghyunwoo/.npm/_logs/2022-02-15T06_37_02_325Z-debug-0.log

 

 

 

해결 방법

1. global로 설치된 react-devtools uninstall

npm uninstall -g react-devtools

2. react-devtools에서 설치하라는 버전대로 다시 설치 (내 경우 4.11.0이었음)

yarn global add react-devtools@4.11.0

 

 

 

 

이유