상세 컨텐츠

본문 제목

[React Native] React Native Template TypeScript 에러 해결 방법

PROGRAMMING/Mobile

by koharin 2021. 8. 29. 20:46

본문

728x90
반응형
npm ERR! 404 Not Found - GET https://registry.npmjs.org/react-native-template-react-native-template-typescript - Not found
npm ERR! 404
npm ERR! 404  'react-native-template-react-native-template-typescript@latest' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\johan\AppData\Roaming\npm-cache\_logs\2021-08-29T11_35_17_594Z-debug.log
npm WARN deprecated babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
npm WARN tsutils@3.21.0 requires a peer of typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta but none is installed. You must install peer dependencies yourself.
npm WARN jscodeshift@0.11.0 requires a peer of @babel/preset-env@^7.1.6 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

react-native-cli를 이용해서 typescript를 사용하는 react native 프로젝트 생성 시 위와 같은 템플릿을 찾을 수 없다는 오류가 발생했다면,

react-native-cli를 삭제한 후 새로운 cli 버전을 다시 설치해야 한다.

 

 

해결방법

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

 

 

Reference

https://github.com/react-native-community/react-native-template-typescript

 

GitHub - react-native-community/react-native-template-typescript: 👾 Clean and minimalist React Native template for a quick st

👾 Clean and minimalist React Native template for a quick start with TypeScript. - GitHub - react-native-community/react-native-template-typescript: 👾 Clean and minimalist React Native template for ...

github.com

 

728x90
반응형

관련글 더보기