我正在尝试使用react-native
命令设置react-native init myProject
。
但是当我运行命令时,我发现了以下错误:
Looks like you installed react-native globally, maybe you meant react-native-cli?
To fix the issue, run:
npm uninstall -g react-native
npm install -g react-native-cli
但是我尝试卸载react-native重新安装react-native-cli,但仍然会这样做。
我做错了什么? 有人能解释我如何解决这个问题吗?