如何修复“找不到模块".../template.config"React Native 中的错误

编程入门 行业动态 更新时间:2024-10-14 02:23:28
本文介绍了如何修复“找不到模块".../template.config"React Native 中的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在尝试使用 react-native init MyApp 在 React Native 中创建一个新应用程序,但出现此错误:

I'm trying to create a new application in React Native using react-native init MyApp But I got this error:

√ 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

我需要做什么来解决这个问题?

What do I need to do to solve this problem?

推荐答案

yarn global add @react-native-community/cli@2.0.0-rc.2 然后 react-nativeinit MyApp 为我工作

更多推荐

如何修复“找不到模块".../template.config"React Native 中的错误

本文发布于:2023-11-24 12:38:07,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1625233.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:找不到   模块   错误   Native   template

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!