我正在尝试使用 React Native 创建一个新应用程序react-native init MyApp
但我收到了这个错误:
√ 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
then
react-native init MyApp
我需要做什么来解决这个问题?
yarn global add @react-native-community/[email protected] /cdn-cgi/l/email-protection
then react-native init MyApp
为我工作
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)