react-native init trowing错误

时间:2016-05-31 13:44:51

标签: reactjs react-native

我正在尝试使用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,但仍然会这样做。

我做错了什么? 有人能解释我如何解决这个问题吗?

0 个答案:

没有答案