After uninstalling the react-native-cli
i run this command to initiate a RN project with typescript template:
npx react-native init MyApp --template react-native-template-typescript
but i got this error:
warning jest > jest-cli > jest-config > jest-environment-jsdom > jsdom
left-pad@1.3.0: use String.prototype.padStart() error An unexpected error occurred:"https://registry.yarnpkg.com/react-native-template-react-native-template-typescript: Not found".info If you think this is a bug, please open .....
[1/2] Removing module react-native-template-react-native-template-typescript...
error This module isn't specified in a package.json file.
info Visit https://yarnpkg.com/en/docs/cli/remove for documentation about this command. warn Failed to clean up template temp files in node_modules/react-native-template-react-native-template-typescript. This is not a critical error, you can work on your app.
(node:8548) UnhandledPromiseRejectionWarning: Error: Command failed: yarn add react-native-template-react-native-template-typescript