React-native
[React Native] React Native CLI로 TypeScript 시작할 때 에러발생
판교너굴맨
2021. 9. 24. 17:37
error An unexpected error occurred: "https://registry.yarnpkg.com/react-native-template-react-native-template-typescript: Not found".
공식문서에 확인해보면 react-native-cli시스템에 전역적으로 설치되어 있어서 에러가 발생할 수도 있다고 한다.
# 전역 설치된 react-native-cli 제거
npm uninstall -g react-native-cli
# init typescript project
npx react-native init MyApp --template react-native-template-typescript
다른 정리된 블로그 참조
- 공식문서
- https://kimck.tistory.com/entry/%EB%A6%AC%EC%95%A1%ED%8A%B8-%EB%84%A4%EC%9D%B4%ED%8B%B0%EB%B8%8CReact-Native-TypeScript-%ED%85%9C%ED%94%8C%EB%A6%BF-%EC%82%AC%EC%9A%A9%EC%8B%9C-%EC%97%90%EB%9F%AC
Using TypeScript · React Native
TypeScript is a language which extends JavaScript by adding type definitions, much like Flow. While React Native is built in Flow, it supports both TypeScript and Flow by default.
reactnative.dev
[리액트 네이티브/React Native] TypeScript 템플릿 사용시 에러
Error error An unexpected error occurred: "https://registry.yarnpkg.com/react-native-template-template-typescript: Not found”. error This module isn't specified in a package.json file. react-native..
kimck.tistory.com