I'm installing react-native first安装react-native-cli
根据以下说明:https://facebook.github.io/react-native/docs/getting-started.html ...
我安装了Android Studio,然后将sdk路径添加到我的$PATH中,所以如果我echo $PATH
,路径
/c/Users/MyUser/AppData/Local/Android/Sdk/platform-tools
包括在内。然后我...
npm install -g react-native-cli
这导致了
C:\Users\MyUser\AppData\Roaming\npm\react-native ->
C:\Users\MyUser\AppData\Roaming\npm\node_modules\react-native-cli\index.js
+ react-native-cli@2.0.1
updated 1 package in 2.303s
但它仍然没有找到react-native...
react-native-cli --version
bash: react-native-cli: command not found
为什么我找不到react-native-install?
2条答案
按热度按时间wb1gzix01#
react-native-cli不是命令。有了这个npm i -g react-native-cli,你可以使用命令-> react-native,你现在可以使用react-native init“project”然后npm start
jexiocij2#