react-native开始给出无效的正则表达式无效错误 [英] react-native start giving Invalid regular expression invalid error
本文介绍了react-native开始给出无效的正则表达式无效错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我按照以下链接开始使用 react-native
所以我使用 start 命令来运行 Metro 服务器
react-native start
这个命令给了我另一个控制台错误
解决方案
Nodejs的兼容性问题我卸载了我的 Node(12.11) 并安装了 Node(10) 稳定版,它运行良好.
I followed following link to get started with react-native
Getting started with react native
I tried to create native app without expo so i as per documentation i followed following command
npm install -g react-native-cli
react-native init AwesomeProject
After run android command
react-native run-android
It gave me following error on emulator
So i used start command to run metro server
react-native start
This command gave me another error in console
解决方案
Its compatibility issue of Nodejs I uninstalled my Node(12.11) and installed Node(10) stable version and it worked perfectly.
这篇关于react-native开始给出无效的正则表达式无效错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文