npx react-native init MyApp
√ 下载模板 × 复制模板错误 Error: Cannot find module 'C:\Users\%%%%\AppData\Local\Temp\rncli-init-template-rVvcjE\node_modules\react-native\template.config' Require stack: - C:\Users\%%%%%\node_modules\react-native\node_modules@react-native-community\cli\build\commands\init\template.js - C:\Users\%%%%%\node_modules \react-native\node_modules@react-native-community\cli\build\commands\init\init.js - C:\Users\%%%%%\node_modules\react-native\node_modules@react-native-community\ cli\build\commands\init\index.js - C:\Users\%%%%%\node_modules\react-native\node_modules@react-native-community\cli\build\commands\index.js - C:\用户\%%%%%\node_modules\react-native\node_modules@react-native-community\cli\build\index.js - C:\Users\%%%%%\node_modules\react-native\cli.js
npx 反应原生信息
info 获取系统和库信息... 系统:操作系统:Windows 10 10.0.18363 CPU:(8) x64 AMD Ryzen 5 2500U with Radeon Vega Mobile Gfx 内存:3.88 GB / 6.80 GB 二进制文件:节点:12.13.1 - C: \Program Files\nodejs\node.EXE npm: 6.12.1 - C:\Program Files\nodejs\npm.CMD SDKs: Android SDK: API Levels: 21, 22, 23, 24, 25, 26, 27, 28, 29 构建工具:28.0.3、29.0.2 IDE:Android Studio:版本 3.5.0.0 AI-191.8026.42.35.5977832 npmPackages:react-native:0.61.5 => 0.61.5
为了避免不必要的响应,npm uninstall react-native-cli -g 已经完成。
上面提到的文件路径中的 rncli-init-template-rVvcjE 甚至不存在,我不知道为什么。谢谢大家提前提供帮助我是堆栈溢出的新手,到目前为止我只进行过有竞争力的编程。对算法并不陌生,但对于跨平台开发框架,我是新手。