First, npm install -g react-native-cli command executed well. but react-native init SampleReactNativeProject command generated error as - 'react-native' is not recognized as an internal or external command, operable program or batch file.
I tried lot of solutions but not a single solution works for me.
I have installed node 8.9.4, npm 5.6.0, Android Studio 3.2.1. Also I set variables - C:\Users\JOHN\AppData\Roaming\npm, D:\Android_Data\Android\sdk\platform-tools, D:\Android_Data\Android\sdk\platform-tools\adb.exe, C:\Program Files\nodejs,
What to do now? Any suggestions?
Add to your PATH
Environment Variable the location of your npm
.
Usually it's located at:
C:\Users\USER_NAME\AppData\Roaming\npm
There you will find react-native.cmd
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With