Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

Create App with React Native and typescript

$
0
0

I'm trying to create an app with React Native and TypeScript, but it's not working. I use the following commands:

npx react-native init MyApp --template react-native-template-typescript

And the log error:

Yarn version:   1.22.15Node version:   16.10.0Platform:   win32 x64Trace:   Error: https://registry.yarnpkg.com/react-native-template-react-native-template-typescript: Not found      at Request.params.callback [as _callback] (C:\Users\pc\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:66140:18)      at Request.self.callback (C:\Users\pc\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:140885:22)      at Request.emit (node:events:390:28)      at Request.<anonymous> (C:\Users\pc\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:141857:10)      at Request.emit (node:events:390:28)      at IncomingMessage.<anonymous> (C:\Users\pc\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:141779:12)      at Object.onceWrapper (node:events:509:28)      at IncomingMessage.emit (node:events:402:35)      at endReadableNT (node:internal/streams/readable:1343:12)      at processTicksAndRejections (node:internal/process/task_queues:83:21)

Viewing all articles
Browse latest Browse all 6287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>