• 카테고리

    질문 & 답변
  • 세부 분야

    모바일 앱 개발

  • 해결 여부

    해결됨

expo-cli 설치 에러

22.07.22 21:25 작성 조회수 607

0

현재 windows10을 이용중이고, cmd에서 'npm install -g expo-cli'라고 입력하였을 때 설치되다가 마지막에 이러한 에러가 나옵니다. 이럴 땐 어떻게 해결해야하나요?

npm ERR! code EEXIST
npm ERR! path C:\Users\tlsl1\AppData\Roaming\npm\node_modules\expo-cli\bin\expo.js
npm ERR! dest C:\Users\tlsl1\AppData\Roaming\npm\expo
npm ERR! EEXIST: file already exists, cmd shim 'C:\Users\tlsl1\AppData\Roaming\npm\node_modules\expo-cli\bin\expo.js' -> 'C:\Users\tlsl1\AppData\Roaming\npm\expo'
npm ERR! File exists: C:\Users\tlsl1\AppData\Roaming\npm\expo
npm ERR! Remove the existing file and try again, or run npm
npm ERR! with --force to overwrite files recklessly.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\tlsl1\AppData\Roaming\npm-cache\_logs\2022-07-22T12_23_48_523Z-debug.log

답변 1

답변을 작성해보세요.

0

안녕하세요 tlsl13님, 

 

답변이 늦어 죄송합니다. 질문이 올라온것을 놓치고 있었네요. 

혹시 아직 같은 문제가 발생하고 있나요?

 

expo 와 관련된 폴더를 삭제하고 다시 설치를 진행해 보는것을 추천합니다. 

C:\Users\tlsl1\AppData\Roaming\npm 밑에 있는 폴더 및 파일 중 expo 와 관련된 것을 삭제하고, 

npm cache clean --force 명령어를 실행한 다음 다시 설치를 진행해 보세요. 

 

감사합니다.