I am using this tutorial
https://facebook.github.io/react-native/docs/getting-started.html#content
I am using windows 8.
I have print npm install -g react-native-cli. Then
react-native init AwesomeProject
cd AwesomeProject
Then I have read that on windows I can't use this command react-native run-android so I print node node_modules/react-native/packager/packager.js
as suggested here https://facebook.github.io/react-native/docs/linux-windows-support.html#content
And I get the following output:
Error: Cannot find module 'C:\Windows\System32\AwesomeProject\node_modules\react -native\packager\packager.js' at Function.Module._resolveFilename (module.js:337:15) at Function.Module._load (module.js:287:25) at Function.Module.runMain (module.js:457:10) at startup (node.js:136:18) at node.js:972:3
Myawesomeproject folder has 2 files npm-debug.log and package.json
So I feel like something went wrong. Ho can I fix this?
react-native start, instead calling the packager directly? - puriinpm installbefore attempting thenodecommand? - Alexander Kuzmin