Hello
I set up development environment and did some practice projects in OS X and it works fine.
Now, I am trying to do the same thing in Windows 7, but I've got stuck in the beginning....
I am using Windows 7, following the instruction of the offical Getting Start Guide, installed nodejs(6.3.1), python2 by chocolatey. then global install react-native-cli(1.0.0) by npm
When I was trying to initializing a new project with the command-line tool
react-native init test1
It return the message:
'react-native is' not recognized as an internal or external command
Is there anything I missed? I couldn't find any information on internet and I have reinstalled nodejs and react-native-cli for several times, and tried on two computers.
cheers
Problem solved after I add npm path to global path config manually instead of default user path ....
what's the meaning of "add npm path to global path config instead of user path...."
I meee the same problem..
add path of npm module (C:\Users\your user nameAppData\Roaming\npm) to system variables instead of user variables
It works!!!!!!Thank you so............much!!!!!!!
UPDATE: the other PC works fine without modifying system variables manually...I am confused...
Hi, I follow your steps but it didnot work. Still the same problem(react-native is not recognized as an internal or external command, operable program or batch file.
I have copied the path of npm folder, System32, etc as following your instructions. I use Win7.
Any recommendation?
@HienNguyen711 Run this command at your CMD: "npm config list" it is very possible that your environmental variable for npm is pointing to the wrong location. When you run this command, it will give you the correct location.
Also worked well for me, Thanks a lot
,,, it broke my node instalation ((((
I have tried the above answers but it didn't work for me .
What worked for me is install react native globally by using command
npm install -g react-native-cli
I had to run cmd as admin, otherwise, it won't work. I am running window 7 -64 bit.
This worked for me.
npm install -g react-native-cli
Thanks :) @pallavbohara
In Windows, Please follow this image, you will solve this issue.
add path of npm module (C:\Users\your user nameAppData\Roaming\npm) to system variables instead of user variables
Worked For Me Thanks Alot
@warmwater you da MVP
i used the above method but it is still not working i added the path to the system variables please help. I am using windows 8.1
npm install -g react-native-cli
worked for me
solved this issue by uninstalling Node.js and then reinstalling it using installer in Node page
Most helpful comment
I have tried the above answers but it didn't work for me .
What worked for me is install react native globally by using command
npm install -g react-native-cli