我正在尝试使用 react-native init MyApp
在 React Native 中创建一个新应用程序但我收到了这个错误:
√ Downloading template
× Copying template
error Error: Cannot find module 'C:\Users\Emre\AppData\Local\Temp\rncli-init-template-hNGjwo\node_modules\react-native\template.config'
我试过的:
npm install -g react-native-cli
然后
react-native init MyApp
我需要做什么来解决这个问题?
最佳答案
yarn global add @react-native-community/cli@2.0.0-rc.2
然后 react-native init MyApp
为我工作
关于react-native - 如何修复 React Native 中的 "Can not find module ".../template.config” 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58145014/