인프런 커뮤니티 질문&답변

zucin님의 프로필 이미지

작성한 질문수

맛집 지도앱 만들기 (React Native + NestJS)

[1-5] 프로젝트 생성 및 ruby 에러 해결

npx react-native@0.72.6 init MatzipApp 실행시 에러...

24.10.15 11:16 작성

·

72

0

  • npx react-native@0.72.6 init MatzipApp으로 프로젝트 생성시에

    스크린샷 2024-10-15 오전 11.15.54.png

    위 그림과 같은 에러가 발생합니다. ㅠㅠ

     

    에러내용(error Couldn't find the "/var/folders/gc/vtr7g1756tq9m2vjzb7qtc7c0000gn/T/rncli-init-template-0bHa5c/node_modules/react-native/template.config.js file inside "react-native" template. Please make sure the template is valid. Read more: https://github.com/react-native-community/cli/blob/master/docs/init.md#creating-custom-template.

    info Run CLI with --verbose flag for more details.)

     

     

    어떻게 해결해야 할까요?

답변 2

0

이응치읓님의 프로필 이미지

2024. 10. 23. 13:20

시간이 지나서 해결하셨는지 모르겠지만 문서에 있는
명령어 입력하니까 저는 해결됐어요.

npm uninstall -g react-native-cli @react-native-community/cli

0

Kyo님의 프로필 이미지
Kyo
지식공유자

2024. 10. 15. 11:45

명령어 끝에 --npm를 붙여서 해보시겠어요?

zucin님의 프로필 이미지
zucin
질문자

2024. 10. 16. 07:49

nix react-native@0.72.6 init MatzipApp --npm
으로 실행해도
Copying template

error Couldn't find the "/var/folders/gc/vtr7g1756tq9m2vjzb7qtc7c0000gn/T/rncli-init-template-rsE3qS/node_modules/react-native/template.config.js file inside "react-native" template. Please make sure the template is valid. Read more: https://github.com/react-native-community/cli/blob/master/docs/init.md#creating-custom-template.

info Run CLI with --verbose flag for more details.
똑같은 에러가 발생합니다.ㅠ
node 버전은 18.20.4
yarn 버전은 1.22.17
입니다.ㅠㅠ

zucin님의 프로필 이미지

작성한 질문수

질문하기